(zipfs) Problems moving files between zip file systems

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 7, 7u9
    • Component/s: core-libs
    • b87
    • generic
    • generic
    • Verified

        While working with the new ZipFileSystem to modify the contents of a zip file, encountered some issues.

        The issue occurs when a file within a zip file is moved to a different location within the same zip and a FileVisitor is invoked by Files.walkFileTree the original (no longer existing file) will attempted to be visited by ZipFileSystemProvider and throw a NoSuchFileException.

         
        Attached is a standalone java file that can reproduce the issue.

        Tested this on Java 7 u9 and the issue still exists.

        The code creates a zip file with 5 elements in a sub directory, writes the content to disk, prints the contents of the zip file using Files.walkFileTree, moves one file from a subfolder to the root folder, then prints the contents of the zip file using Files.walkFileTree again.


              Assignee:
              Mark Sheppard
              Reporter:
              Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: