Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.8.0
-
None
-
Unknown
Description
With the following route (defined in Groovy) :
ZipFileDataFormat zipFile = new ZipFileDataFormat() zipFile.setUsingIterator(true) from("file:/path/to/zippedInput?antInclude=*.zip&delete=true") .log('Detected file "${headers.CamelFileAbsolutePath}"') .unmarshal(zipFile) .split(bodyAs(Iterator)).streaming() .to("file:/path/to/target/dir") .log('Extracted file "${headers.CamelFileName}" to "${headers.CamelFileNameProduced}"') .end()
no error is thrown when an invalid zip file (empty file or any data file) is treated.
The correction applied to CAMEL-14748 works only when usingIterator is false in org.apache.camel.dataformat.zipfile.ZipFileDataFormat#unmarshal.
Attachments
Issue Links
- is a clone of
-
CAMEL-14748 Unmarshal ZIP w/ error handling in Camel 3.x
- Closed