[jboss-jira] [JBoss JIRA] Updated: (JBVFS-89) Fix use of java.util.File.toURL()

Ales Justin (JIRA) jira-events at lists.jboss.org
Mon Mar 2 08:56:58 EST 2009


     [ https://jira.jboss.org/jira/browse/JBVFS-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ales Justin updated JBVFS-89:
-----------------------------

    Affects Version/s: 2.0.1.GA


> Fix use of java.util.File.toURL()
> ---------------------------------
>
>                 Key: JBVFS-89
>                 URL: https://jira.jboss.org/jira/browse/JBVFS-89
>             Project: JBoss VFS
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.0.1.GA
>            Reporter: Adrian Brock
>            Assignee: Ales Justin
>             Fix For: 2.1.0.GA
>
>
> There are a number of places in the VFS code that are doing
> java.util.File.toURL() 
> which doesn't escape the URL properly. These should at least be doing 
> File.toURI().toURL() 
> to get the correctly escaped URL.
> e.g. in FileSystemContext
>    protected DelegatingHandler mountZipFS(VirtualFileHandler parent, String name, File file) throws IOException, URISyntaxException
>    {
>       DelegatingHandler delegator = new DelegatingHandler(this, parent, name);
>       URL fileUrl = file.toURL(); // HERE!!!!!!!

-- 
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

        



More information about the jboss-jira mailing list