You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bernd Eckenfels (JIRA)" <ji...@apache.org> on 2015/10/01 16:29:27 UTC
[jira] [Resolved] (VFS-490) [vfsclassloader] tries to open folders
with .zip or .jar extension
[ https://issues.apache.org/jira/browse/VFS-490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernd Eckenfels resolved VFS-490.
---------------------------------
Resolution: Fixed
Assignee: Bernd Eckenfels
Fix Version/s: 2.1
Fixed in http://svn.apache.org/viewvc?rev=1706261&view=rev
> [vfsclassloader] tries to open folders with .zip or .jar extension
> ------------------------------------------------------------------
>
> Key: VFS-490
> URL: https://issues.apache.org/jira/browse/VFS-490
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Bernd Eckenfels
> Assignee: Bernd Eckenfels
> Fix For: 2.1
>
> Attachments: VFS-490.diff
>
>
> When adding folders with a name ending in {{.zip}} or {{.jar}} to the {{VFSClassLoader}} will fail to load resources from this search path.
> It tries to open it as a layered filesystem. This can be fixed in the classloader by checking that the file type has content, but most likely it is a more generic bug in {{canCreateFileSystem()}} which does not do this distinction.
> The following is a quick fixed version (it also inlines the Resource class)
> https://github.com/ecki/seeburger-vfs2/blob/master/vfs2provider-jdbctable/src/main/java/com/seeburger/vfs2/util/VFSClassLoader.java#L152
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)