commons-issues mailing list archives

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

     [ https://issues.apache.org/jira/browse/VFS-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Frank updated VFS-226:
----------------------

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

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

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

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);
}




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

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

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

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);
}





> resolving of relative layers does not work correctly
> ----------------------------------------------------
>
>                 Key: VFS-226
>                 URL: https://issues.apache.org/jira/browse/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 "rules.zip" because it is a relative path, and no base URI
was provided.
> I used the method StandardFileSystemManager.resolveFile(FileObject, String) where the
FileObject is the directory where the file rules.zip is located (file:///d:/temp) and for
the path I use 'zip:rules.zip'.
> 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.


Mime
View raw message