JDK-8229888 : (zipfs) Updating an existing zip file does not preserve original permissions
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 8,11,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-08-19
  • Updated: 2021-02-16
  • Resolved: 2019-12-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 15 JDK 8 Other
11.0.7-oracleFixed 13.0.4Fixed 15 b02Fixed 8u261Fixed openjdk8u262Fixed
Related Reports
Duplicate :  
Relates :  
Description
Updating an existing zip file with zipfs will re-create the zip file without preserving the original file permissions. The permissions are also problematic for new files when it moves/copies the zip file from the temporary location.

The issue is reported here:
https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-August/061904.html
Comments
Fix request (13u): I would like to add this fix to 13.0.4 for parity with 11u. The change needs to be adjusted to 13u. RFR: https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-June/003336.html The backport has been tested with tier1, and newly introduced regression test.
22-06-2020

Alex tells me this is still on review: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-April/011540.html
21-04-2020

Fix Request (8u) Backport to 8u requested because it is a part of 8u261-oracle. Patch doesn't apply cleanly - test is adjusted for 8u. Review thread: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-March/011474.html Test is included with the patch.
31-03-2020

jdk11 downport request I would like to have the patch in openjdk11 as well, because the issue is present in jdk11 as well, and it is a part of 11.0.7-oracle. The patch does not apply cleanly to 11u but needs small adjustments. jdk11 review thread : https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-February/002622.html
28-02-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/798c0903fcd0 User: lancea Date: 2019-12-18 17:04:29 +0000
18-12-2019