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

JarFileSystem incorrectly resolves file if it has been removed from the cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • 2.0

    Description

      If I call fileSystemManager.resolveFile("jar: ... ") and the file was removed from cache, JarFileSystem calls method createFile(AbstractFileName name). This method is not overridden from ZipFileManager and works wrong (its return ZipFileObject instead JarFileObject). But i can override it and make return JarFileObject case this object won't have children and JarURLConnectionImpl won't work. It should reinvalidate cache and return the object with children objects.

      I've added a patch to fix this problem.

      Attachments

        1. JarFileSystem.java.patch
          0.7 kB
          Sergey Grigorev

        Activity

          People

            Unassigned Unassigned
            sergeygrigorev Sergey Grigorev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified