commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank (JIRA)" <>
Subject [jira] Created: (VFS-226) resolving of relative layers does not work correctly
Date Mon, 17 Nov 2008 12:07:44 GMT
resolving of relative layers does not work correctly

                 Key: VFS-226
             Project: Commons VFS
          Issue Type: Bug
         Environment: Windows XP, Java 1.4
            Reporter: Frank

When I try to resolve a relative layered filesystem I get the error 

Could not find file with URI "" because it is a relative path, and no base URI was

I used the method resolveFile(FileObject, String) where the FileObject is the directory where
the file is located (file:///d:/temp) and for the path I use ''.

Since I pass a base file I would think it should be able to find the zip file.

When debugging I found the following:

LayeredFileNameParser.parseUri(VfsComponentContext, FileName, String) does one line 54:

rootUri = context.parseURI(rootUriName);

I believe that in this call it loses the reference to the base file I passed .

The context forwards to the FileSystemManager.resolveURI(String)

which throws the exception because its base file isn't set:

if (baseFile == null)
	throw new FileSystemException("vfs.impl/find-rel-file.error", uri);

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

View raw message