[jboss-jira] [JBoss JIRA] Resolved: (JBVFS-160) FileSystemContext.getFileURI returns wrong URI for UNC paths on Windows

James Livingston (JIRA) jira-events at lists.jboss.org
Tue May 3 20:25:18 EDT 2011


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

James Livingston resolved JBVFS-160.
------------------------------------

    Resolution: Done


The fix was committed a while back, but it looks like we forgot to close the JIRA

> FileSystemContext.getFileURI returns wrong URI for UNC paths on Windows
> -----------------------------------------------------------------------
>
>                 Key: JBVFS-160
>                 URL: https://issues.jboss.org/browse/JBVFS-160
>             Project: JBoss VFS
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.1.3.SP1, 2.2.0.Alpha2
>         Environment: Windows
>            Reporter: James Livingston
>            Assignee: Ales Justin
>             Fix For: 2.2.0.Alpha3, 2.1.4.GA
>
>         Attachments: UncPathTest.java, vfs-unc.diff, vfs-uri-unc.diff
>
>
> When passed a File for something with a UNC path (e.g. \\127.0.0.1\shared), FileSystemContext.getFileURI() return a URI like "file://127.0.0.1/shared" (which is what Windows itself uses) rather than "file:////127.0.0.1/shared" (which Java uses, and converts for OS calls). This will cause JBoss to fail to deploy things if they are located on an unmapped UNC location.
> I'm attaching a test case for this. To use it, you need to run it on a Windows system and have access to a something with a UNC path. The code as written expects there to be a SMB share called "shared" on the machine it is run on, but it can easily be change to point elsewhere.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list