Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8286594

(zipfs) Mention paths with dot elements in ZipException and cleanups

    XMLWordPrintable

Details

    • b09
    • 18
    • b23

    Backports

      Description

        After JDK-8251329 it is not possible to open a zip file that has entries with "." or ".." as path elements in Zip FS any more.

        We then get a ZipException with the message:
        ZIP file can't be opened as a file system because an entry has a '.' or '..' element in its name

        The ZipException could be improved to mention the problematic entry. Furthermore, the code that checks for "." or ".." path elements can be cleaned up a bit.

        This enhancement complements JDK-8286444 to be more helpful when chasing javac errors.

        Attachments

          Issue Links

            Activity

              People

                clanger Christoph Langer
                clanger Christoph Langer
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: