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

ZipFile rejects ZIP file that some zip tools can parse without errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • tbd
    • 20.0.2
    • core-libs

      The attached TEST.zip file is accepted by the latest JDK8u382, by the JDK20GA, by the zip, by the Windows Explorer and macOS Archive Utility.
      That zip file also passed the integrity test via "zip -T".

      But it is rejected by the latest update of JDK 20.0.2, actually by all JDK11+.

      See discussion here: https://github.com/openjdk/jdk/pull/15273

      Suggestion to use the "-Djdk.util.zip.disableZip64ExtraFieldValidation=true" does not work well here. Using that property will completely disable more important checks.
      Validation of the negative values is much more important which was a root cause of the related bug.

            lancea Lance Andersen
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: