Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-490

[vfsclassloader] tries to open folders with .zip or .jar extension

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      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

        Attachments

        1. VFS-490.diff
          6 kB
          Gary Gregory

          Activity

            People

            • Assignee:
              b.eckenfels Bernd Eckenfels
              Reporter:
              b.eckenfels Bernd Eckenfels
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: