Hi List.
Perhaps it was discusssed already, but I couldn't find it.

We still have software running on java 8 and java.util.zip.ZipFile can't open 
small zips if some entries have huge uncompressed size. Same archives can be 
opened on java 24 without problem. This happens with zips created with 
ZipArchiveOutputStream, if repacked with 7zip it works even with java 8.

I see that both 7zip and Commons enable zip64 extensions in the entries, but 
7zip doesn't create the zip64 headers in the central directory.

For same input data, if I pause the debugger at the beginning of 
ZipArchiveOutputStream.writeZip64CentralDirectory() and clear the 
"hasUsedZip64" flag, the file can be opened by java 8!

What do you think? Can we add a quirk to omit Zip64CentralDirectory if the 
resulting file would be small enough?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to