zt-zip fails to unpack some jar
See original GitHub issueHello,
When trying to unpack this jar, zt-zip crashes with the following stacktrace:
Caused by: org.zeroturnaround.zip.ZipException: java.util.zip.ZipException: bad extra field starting at 9. Block length of 49135 bytes exceeds remaining data of 4 bytes.
at org.zeroturnaround.zip.ZipEntryUtil.getZTFilePermissions (ZipEntryUtil.java:202)
at org.zeroturnaround.zip.ZipUtil$Unpacker.process (ZipUtil.java:1182)
at org.zeroturnaround.zip.ZipUtil.iterate (ZipUtil.java:508)
at org.zeroturnaround.zip.ZipUtil.iterate (ZipUtil.java:472)
at org.zeroturnaround.zip.ZipUtil.unpack (ZipUtil.java:996)
I have no problem unzipping this file with any desktop tool, or if I implement the unzip myself based on ZipInputStream
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
GitHub - zeroturnaround/zt-zip
Unpacking. Check if an entry exists in a ZIP archive. boolean exists = ZipUtil.
Read more >Okay, Unzip Jar, Zip Jar Success! But unzipping it again Fails?
Steps I took: 1. Unzipped the jar with success 2. Zipped the jar with success 3. Unzipped again to find all those errors....
Read more >org.zeroturnaround.zip.ZipUtil.unpack java code examples
Unpacks a ZIP file to the given directory. * <p> * The output directory must not be a file. * * @param zip...
Read more >Java Examples for org.zeroturnaround.zip.ZipUtil - Javatips.net
This java examples will help you to understand the usage of org.zeroturnaround.zip.ZipUtil. These source code samples are taken from different open source ...
Read more >Meet ZT-ZIP, Open Source Zip Library For Java - JRebel
The exploded deployments need to be compressed before any sending can happen. We spent some time looking at different libraries out there, but ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve released 1.15. Your issue should be fixed now.
Thanks a lot!