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

Split zip - Could not read corresponding local file header for file header #333

Closed
arekfajdek opened this issue Jul 8, 2021 · 4 comments
Assignees
Labels
bug Something isn't working resolved

Comments

@arekfajdek
Copy link

Hey! I have an issue with the split zip file created by 7z.
Zip file contains 1 image, 1 text file, and I'm doing a simple extraction:
try (var zipFile = new ZipFile("correctPathToZip\\some.zip.001")) { zipFile.extractAll("pathWhereToUnzip"); }

part1 and part2 are in the same folder. Image is extracted correctly, but for the text file I'm getting

net.lingala.zip4j.exception.ZipException: Could not read corresponding local file header for file header: some/test.log

I have attached my taste case. It seems like an issue in zip4j but I'm not 100% sure about it.
It could be related to a small text file.

Any idea what is the root cause of this issue?
testCase.zip

@srikanth-lingala
Copy link
Owner

Thanks for the zip file. I was able to reproduce it. I will look into whats going wrong here.

@srikanth-lingala srikanth-lingala self-assigned this Aug 3, 2021
@srikanth-lingala srikanth-lingala added bug Something isn't working in-progress labels Aug 3, 2021
@johnwongapi
Copy link

Hi, i faced the some exception on the above split zip.
It is created via 7zip software, we may need to take a look on code part about handling 7zip split.

@srikanth-lingala
Copy link
Owner

I am currently working on a fix for this. I will include the fix in the next release.

@srikanth-lingala
Copy link
Owner

Fixed in v2.11.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

3 participants