Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8184993 Jar file verification failing with SecurityException: digest missing xxx
  3. JDK-8185136

Release Note: java.util.zip.ZipFile.getEntry() now always returns the ZipEntry instance with a '/' ended entry name for directory entry


    • Type: Sub-task
    • Status: Closed
    • Priority: P2
    • Resolution: Delivered
    • Affects Version/s: 6u161, 6u171, 7u151, 7u171, 8u144
    • Fix Version/s: 8u144
    • Component/s: core-libs



        The `java.util.zip.ZipEntry` API doc specifies "A directory entry is defined to be one whose name ends with a '/'". However, in previous JDK releases `java.util.zip.ZipFile.getEntry(String entryName)` may return a `ZipEntry` instance with an entry name that does not end with '/' for an existing zip directory entry when:

        * the passed in argument `entryName` does not end with a '/', and
        * there is a matching zip directory entry with name `entryName` + '/' in the zip file.

        With this release, the name of the `ZipEntry` instance returned from `java.util.zip.ZipFile.getEntry()` always ends with '/' for any zip directory entry.

        To revert to the previous behavior, set the system property `jdk.util.zip.ensureTrailingSlash` to "false".

        This change was made in order to fix a regression introduced in JDK 8u141 when verifying signed JARs and has caused some WebStart applications to fail to load. See JDK-8184993 for more information.


          No work has yet been logged on this issue.


            • Assignee:
              mullan Sean Mullan
              mullan Sean Mullan
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created: