Clone
 

thorsten schöning <tschoening@am-soft.de> in wicket-git

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.

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.

WICKET-6757 Avoid URL.getFile()

Another place where "URL.getFile()" is forwarded to "FileOutputStream"

without caring about proper decoding.

WICKET-6756 Avoid URL.getFile()

Another place where "URL.getFile()" is forwarded to "FileOutputStream"

without caring about proper decoding.