-
Bug
-
Resolution: Done
-
Major
-
JBossAS-3.2.6 Final
-
None
-
None
SourceForge Submitter: andieveritt .
In the constructor of
org.jboss.net.protocol.file.FileURLConnection a new
File is created from the supplied URL. In JDK 1.4 the
result of URL.getPath() is URL encoded which means on
windows with a path with a space you get
'C:\Program%20Files\foo\bar' - which doesn't work.
I have tested a modified version of FileURLConnection
which URL decodes the result. This resolves the issue.
I have attached the modified version. The only change
is on Line 45:
- file = new File(url.getPath().replace('/',
File.separatorChar).replace('|', ':'));
+ file = new
File(java.net.URLDecoder.decode(url.getPath()).replace('/',
File.separatorChar).replace('|', ':'));
- is duplicated by
-
JBAS-1545 FileURLConnection breaks if path has spaces
- Closed
-
JBAS-1621 Exploded RAR deployment fails when JBOSS_HOME has a space in it
- Closed
-
JBAS-2324 Spaces in JBoss Install Path Cause Tomcat Startup Failures
- Closed
- relates to
-
JBAS-2679 FileURLConnection decodeFilePaths SystemProperty not retrieved correctly.
- Closed