Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Zip archive throws invalid entry size #257
When updating a zip archive the pxp:zip step throws in my XProc application a ZipException: invalid entry size (expected XX but got YY bytes)...
here a related description with the remark to not copy the ZipEntry in case the compression level might change:
I agree, it doesn't look perfect to set the compressed size to -1. But I think this just triggers an internal recalculation of the size. At least the resulting zip (resp. xlsx) files are not corrupted.
Line 235 in ZipOutputStream fixes the compressed size when closing the entry: