Bugs item #676243, was opened at 2003-01-28 18:23 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=676243&group_id=22866
Category: JBossServer Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Andrew Everitt (andieveritt) Assigned to: Nobody/Anonymous (nobody) Summary: FileURLConnection needs URL decode for JDK 1.4 Initial Comment: 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('|', ':')); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=676243&group_id=22866 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development