-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
8
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
Opening zip files >4GB does not work when using the ZipFileSystem. It throws a java.util.zip.ZipException: loc: wrong sig, i.e. the zip signature (which contains 64bit extensions) is not read correctly.
In the older zip implementation it is supported, see https://bugs.openjdk.java.net/browse/JDK-8190753
A related issue is: https://bugs.openjdk.java.net/browse/JDK-8190753
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Open a zip file >4GB with ZipFileSystem
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The zip file opens without errors
ACTUAL -
A exception is thrown:
java.util.zip.ZipException: loc: wrong sig ->bdb8ec2c
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.readExtra(ZipFileSystem.java:2439)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.cen(ZipFileSystem.java:2135)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.readCEN(ZipFileSystem.java:2099)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getEntry(ZipFileSystem.java:1384)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getFileAttributes(ZipFileSystem.java:344)
at jdk.zipfs/jdk.nio.zipfs.ZipPath.getAttributes(ZipPath.java:740)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.readAttributes(ZipFileSystemProvider.java:292)
at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:373)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2760)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
FREQUENCY : always
Opening zip files >4GB does not work when using the ZipFileSystem. It throws a java.util.zip.ZipException: loc: wrong sig, i.e. the zip signature (which contains 64bit extensions) is not read correctly.
In the older zip implementation it is supported, see https://bugs.openjdk.java.net/browse/JDK-8190753
A related issue is: https://bugs.openjdk.java.net/browse/JDK-8190753
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Open a zip file >4GB with ZipFileSystem
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The zip file opens without errors
ACTUAL -
A exception is thrown:
java.util.zip.ZipException: loc: wrong sig ->bdb8ec2c
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.readExtra(ZipFileSystem.java:2439)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.cen(ZipFileSystem.java:2135)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.readCEN(ZipFileSystem.java:2099)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getEntry(ZipFileSystem.java:1384)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getFileAttributes(ZipFileSystem.java:344)
at jdk.zipfs/jdk.nio.zipfs.ZipPath.getAttributes(ZipPath.java:740)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.readAttributes(ZipFileSystemProvider.java:292)
at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:373)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2760)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
FREQUENCY : always
- duplicates
-
JDK-8255380 (zipfs) ZipFileSystem::readExtra can fail if zipinfo-time is not set to false
-
- Resolved
-