-
Sub-task
-
Resolution: Delivered
-
P4
-
11.0.20, 11.0.20-oracle, 17.0.8, 17.0.8-oracle, 21
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8316049 | 17.0.8-oracle | Marc Palmerjohnson | P4 | Resolved | Delivered | |
JDK-8316048 | 11.0.20-oracle | Marc Palmerjohnson | P4 | Resolved | Delivered |
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. SeeJDK-8313765.
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
- backported by
-
JDK-8316048 Release Note: Validations on ZIP64 Extra Fields
-
- Resolved
-
-
JDK-8316049 Release Note: Validations on ZIP64 Extra Fields
-
- Resolved
-