[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: [jira] [Commented] (VFS-490) [vfsclassloader] tries to open folders with .zip or .jar extension
From: "Bernd Eckenfels (JIRA)" <jira () apache ! org>
Date: 2015-09-30 18:46:04
Message-ID: JIRA.12664163.1376694778000.121948.1443638764472 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/VFS-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14938257#comment-14938257 \
]
Bernd Eckenfels commented on VFS-490:
-------------------------------------
Think I have sorted out the test harness setup, will commit a fix with some unit \
tests.
> [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
> 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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic