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.

Reply via email to