Hello, probably the logic is doing a check on the effective presence of any file in the zip, throwing the exception. It does not sound like the correct behavior, so, feel free to report on Jira as an issue [1], and, as usual, to contribute with a fix issuing a PR.
Cheers, Pasquale. [1] https://issues.apache.org/jira/projects/CAMEL/issues On Thu, Aug 28, 2025 at 7:49 PM Benjamin Graf <[email protected]> wrote: > Hi together, > > actually camel-zipfile (ZipIterator) does interpret empty zip files as > corrupt > (throwing IllegalStateException("Unable to unzip the file, it may be > corrupted.")). If this behavior is intended it should be documented, > otherwise > even empty zip files could be handled, like iterating an empty collection. > > Opinions? > > Regards, > > Benjamin > >
