Clone
Thorsten Schöning <tschoening@am-soft.de>
committed
on 14 Mar
WICKET-6757 Avoid URL.getFile() for mime type detection
Mime type detection is documented to work on paths or URLs, but
URL.getFile provides… Show more
WICKET-6757 Avoid URL.getFile() for mime type detection

Mime type detection is documented to work on paths or URLs, but

URL.getFile provides neither of both and the default implementation is

very limited regarding / vs. \ and such things. Forwarding an absolute

URI always instead is compatible with the default implementation and

makes absolutely clear what is available. URL.getFile for example might

look like some path in the file system, but would work with paths

containing spaces because of no decoding.

Show less