• Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 21
    • 11.0.20, 11.0.20-oracle, 17.0.8, 17.0.8-oracle, 21
    • core-libs

        A (JDK enhancement)[https://bugs.openjdk.org/browse/JDK-8311940] has improved validation of the ZIP64 Extra Fields contained within zip files and jar files. Files which do not satisfy these new validation checks may result in `ZipException : Invalid CEN header (invalid zip64 extra data field size)`.

        The following third party tools have released patches to better adhere to the ZIP File Format Specification:
        - Apache Commons Compress fix for Empty CEN Zip64 Extra Headers fixed in Commons Compress release 1.11
        - Apache Ant fix for Empty CEN Zip64 Extra Headers fixed in Ant 1.10.14
        - BND issue with writing invalid Extra Headers fixed in BND 5.3
        - The maven-bundle-plugin 5.1.5 includes the BND 5.3 patch.
         
        If these improved validation checks cause issues for deployed zip or jar files, check how the file was created and whether patches are available from the generating software to resolve the issue. The new validation checks can be disabled by adding `-Djdk.util.zip.disableZip64ExtraFieldValidation=true` to the runtime launcher arguments.

        Further modification of validations on ZIP64 Extra Fields contained within zip and jar files will be made in the upcoming JDK release. See JDK-8313765.

              rreddy Ravi Reddy
              rreddy Ravi Reddy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: