Skip to content

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

@arekfajdek

Description

@arekfajdek

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

Metadata

Metadata

Labels

bugSomething isn't workingresolved

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions