Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309841 Jarsigner should print a warning if an entry is removed
  3. JDK-8334260

Release Note: Jarsigner Should Print a Warning If an Entry is Removed

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P4 P4
    • 24
    • 24
    • security-libs

      If an entry is removed from a signed JAR file, there is no way to detect it using the `JarFile` API, since the `getJarEntry` method simply returns `null` as if the entry has never existed. With this change, the `jarsigner -verify` command looks into the signature files, and prints out a warning showing "This JAR contains signed entries for files that do not exist" if some sections do not have matched file entries. Users can further find out the names of these entries by adding the `-verbose` option to the command.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: