[
https://jira.jboss.org/jira/browse/JBCOMMON-103?page=com.atlassian.jira.p...
]
Matt Drees updated JBCOMMON-103:
--------------------------------
Attachment: FileURLConnection.java.patch
Attached is one way to solve this. I'm not sure whether the
"org.jboss.net.protocol.file.decodeFilePaths" property still needs to be
supported, but I assume so. This patch changes the default behavior, though, to false,
since I don't really think it's needed.
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: FileURLConnection.java.patch, 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:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira