[ http://jira.jboss.com/jira/browse/JBAS-363?page=history ]
     
Scott M Stark resolved JBAS-363:
--------------------------------

     Resolution: Done
    Fix Version:  JBossAS-3.2.7 Final

Support has been added to decode the path if the 
org.jboss.net.protocol.file.decodeFilePaths is set to true. This is false by 
default as I don't see any encoding problems when running with jboss in a path 
with spaces. I would like to see  how to reproduce the problem before making 
this true by default.

> FileURLConnection needs URL decode for JDK 1.4
> ----------------------------------------------
>
>          Key: JBAS-363
>          URL: http://jira.jboss.com/jira/browse/JBAS-363
>      Project: JBoss Application Server
>         Type: Bug
>     Versions: JBossAS-3.2.6 Final
>     Reporter: SourceForge User
>     Assignee: Scott M Stark
>      Fix For:  JBossAS-3.2.7 Final

>
>
> 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('|', ':'));

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to