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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b09
    • Introduced In Version:
      18
    • Resolved In Build:
      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

                Assignee:
                clanger Christoph Langer
                Reporter:
                clanger Christoph Langer
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: