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

ZipException: Expected central directory entry not found (#1) #290

Closed
dknchris opened this issue Feb 27, 2021 · 6 comments
Closed

ZipException: Expected central directory entry not found (#1) #290

dknchris opened this issue Feb 27, 2021 · 6 comments
Assignees
Labels
bug Something isn't working resolved

Comments

@dknchris
Copy link

One of my users is getting this error when the app is calling ZipFile.getFileHeaders(). I've attached the zip file for your reference. The zip was created using zip4j v2.7.0 on the user's Android device.
error.zip

I've also tested extracting it with 7z and it works fine. Also tried the 'Test archive' option in 7z and it reports that there are no errors in the archive.

Can you try it out at your end? Please let me know if you need more information.

net.lingala.zip4j.exception.ZipException: Expected central directory entry not found (#1)
        at net.lingala.zip4j.headers.HeaderReader.readCentralDirectory(HeaderReader.java:153)
        at net.lingala.zip4j.headers.HeaderReader.readAllHeaders(HeaderReader.java:101)
        at net.lingala.zip4j.ZipFile.readZipInfo(ZipFile.java:1136)
        at net.lingala.zip4j.ZipFile.getFileHeaders(ZipFile.java:700)
@srikanth-lingala
Copy link
Owner

Issue identified. Fix in progress.

@srikanth-lingala srikanth-lingala self-assigned this Mar 1, 2021
@srikanth-lingala srikanth-lingala added bug Something isn't working in-progress labels Mar 1, 2021
@ucchino
Copy link

ucchino commented Apr 22, 2021

Thank you for the work you are doing. I wanted to ask you for an info on this issue. I see you're working on it.
When do you think it will be ready? even if release snapshot?

Best regards

Paolo

@bobvandenberge
Copy link

@srikanth-lingala we are also running into this issue on production. Do you perhaps have an indication when there will be a release with this fix included?

@srikanth-lingala
Copy link
Owner

@ucchino @bobvandenberge I will try to get a fix out by this weekend. Free time is hard to find nowadays with lockdowns and all (work, kids at home, etc). But I understand your position, and will work on this fix in the next days.

@srikanth-lingala
Copy link
Owner

Issue fixed. I will include the fix in the next release which should be in a day or two. I will update this thread again once the new version is available

srikanth-lingala added a commit that referenced this issue May 24, 2021
@srikanth-lingala
Copy link
Owner

Fixed in v2.8.0 released today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved
Projects
None yet
Development

No branches or pull requests

4 participants