commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Maidanski (JIRA)" <j...@apache.org>
Subject [jira] Created: (VFS-314) Local file path with drive prefix is not handled correctly by resolveFile
Date Thu, 02 Sep 2010 13:19:54 GMT
Local file path with drive prefix is not handled correctly by resolveFile
-------------------------------------------------------------------------

                 Key: VFS-314
                 URL: https://issues.apache.org/jira/browse/VFS-314
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 1.0
            Reporter: Ivan Maidanski
            Priority: Minor


Local file paths with a drive prefix are not handled correctly by resolveFile(). Eg.:

import org.apache.commons.vfs.VFS;
public class Test {
    public static void main(String[] args) throws Exception {
        System.out.println(VFS.getManager().resolveFile("file:/c:/").resolveFile("d:/"));
        System.out.println(VFS.getManager().resolveFile("file:/c:/").resolveFile("/d:/"));
    }
}

Produces output (twice): file:///c:/d:/
The correct output should be: file:///d:/


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message