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

ZIP archives are not properly closed after unzipping and cannot be deleted until the JVM exists

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Labels:
    • Environment:

      Windows

      Description

      Open a zip file with the ZipFileObject

      get an inputstream on its content

      try to delete it...

      it fails.

      I have attached a possible solution to this bug.

        Attachments

        1. ZipFileObject.java.patch
          0.7 kB
          David Mollitor
        2. ZipFileObject.java
          5 kB
          Roman
        3. ZipCloseBug.zip
          988 kB
          David Mollitor
        4. vfs-291.diff
          0.7 kB
          Gary D. Gregory
        5. FileLockUnitTest.diff
          3 kB
          Anton Jackson-Smith
        6. AbstractFileObject.java.patch
          0.7 kB
          David Mollitor
        7. AbstractFileObject.java.2.patch
          0.9 kB
          David Mollitor

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pfeffer Roman
              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: