]
Matt Drees updated JBCOMMON-103:
--------------------------------
Attachment: FileURLConnectionTestCase.java.patch
A testcase showing the problem.
FileURLConnection's use of URLDecoder causes it to break with
file URLs with '+' symbols in the path
----------------------------------------------------------------------------------------------------
Key: JBCOMMON-103
URL:
https://jira.jboss.org/jira/browse/JBCOMMON-103
Project: JBoss Common
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.2.17.GA
Reporter: Matt Drees
Assignee: Dimitris Andreadis
Attachments: FileURLConnectionTestCase.java.patch
FileURLConnection uses URLDecoder.decode() as part of its process for turning URL paths
into filesystem paths. However, this causes paths with '+' symbols to be
incorrectly decoded; the '+' symbols are turned into spaces. (This is most
relevant on mac os x, where the temp directory often contains plus symbols).
This bug is basically identical to JBVFS-129, and I believe the fix is the same (use
File's constructor taking a URI argument).
I'll attach a patch with a testcase and a patch with a potential fix.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: