(zipfs) Include additional information in some ZipException messages

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      Extend some ZipException messages to take advantage of the jdk.includeInExceptions=jar security property and print the file name where possible.

      example:
      java.util.zip.ZipException: ZIP file can't be opened as a file system because an entry has a '.' or '..' element in its name
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.initCEN(ZipFileSystem.java:1589)
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:179)
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getZipFileSystem(ZipFileSystemProvider.java:142)
              at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:137)
              at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:528)
              at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:440)

            Assignee:
            Sean Coffey
            Reporter:
            Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: