Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serious Bug : Error in Opening Zip File , org.zeroturnaround.zip.ZipException #128

Open
goxr3plus opened this issue Oct 17, 2019 · 3 comments

Comments

@goxr3plus
Copy link

I am having the following zip file which is a valid not corrupted zip file and can be opened with zip explorer on windows or 7zip .

Deposit1571307514.zip

But when i try your library to unpack it i am getting the following error :
I will remove it from our dependencies because it had cause an issue in production .
What can be the cause :) ?

org.zeroturnaround.zip.ZipException: java.util.zip.ZipException: error in opening zip file
	at org.zeroturnaround.zip.ZipExceptionUtil.rethrow(ZipExceptionUtil.java:11)
	at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:522)
	at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:472)
	at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:996)
	at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:939)
@goxr3plus goxr3plus changed the title Serious Bug : Error in Opening Zip File Serious Bug : Error in Opening Zip File , org.zeroturnaround.zip.ZipException Oct 17, 2019
@goxr3plus
Copy link
Author

@toomasr Tomas please let me know :)

@toomasr
Copy link
Contributor

toomasr commented Oct 17, 2019

Quick check on my Mac shows:

╭─toomasr@deadlift ~/Downloads
╰─$ unzip -t Deposit1571307514.zip
Archive: Deposit1571307514.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of Deposit1571307514.zip or
Deposit1571307514.zip.zip, and cannot find Deposit1571307514.zip.ZIP, period.

Is this part of a multipart zip file?

@goxr3plus
Copy link
Author

Probably , i tried also with zip4j and it reported missing zip headers .

I think the .zip is either corrupted or not created correctly , just wanted to report .

I go it from a client using our endpoint with the .zip he created .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants