[ 
https://issues.apache.org/jira/browse/NIFI-8612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17347177#comment-17347177
 ] 

David Handermann commented on NIFI-8612:
----------------------------------------

[~langheld] Thanks for reporting this issue.  I tested UnpackContext on 1.13.2 
with the testzip.zip file provided and confirmed the same problem.  This issue 
appears to be related to character set handling in Zip4j prior to version 
2.7.0.  NIFI-8313 included updating Zip4j to version 2.7.0 and testing 
UnpackContent on the current main branch worked as expected.  With that 
verification, this issue will be resolved in the next release.

> UnpackContent is unable to extract zip files when file filter is specified
> --------------------------------------------------------------------------
>
>                 Key: NIFI-8612
>                 URL: https://issues.apache.org/jira/browse/NIFI-8612
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.13.2
>            Reporter: Christoph Langheld
>            Assignee: David Handermann
>            Priority: Major
>         Attachments: image-2021-05-18-11-33-59-379.png, testzip.zip
>
>
> For _some_ zip files, NiFi is not able to extract only files specified by 
> File Filter RegExp.
> NiFi then returns the following error:
> 2021-05-18 11:28:00,122 ERROR [Timer-Driven Process Thread-4] 
> o.a.n.processors.standard.UnpackContent 
> UnpackContent[id=7e1da1e1-0179-1000-c6a6-548eb16bc846] Unable to unpack 
> StandardFlowFileRecord[uuid=368f9c00-fddc-42b2-8763-5ba59c05a54d,claim=StandardContentClaim
>  [resourceClaim=StandardResourceClaim[id=1621328644854-1, container=default, 
> section=1], offset=0, length=300],offset=0,name=testzip02.zip,size=300] 
> because it does not appear to have any entries; routing to failure
> Configuration of UnpackContent processor:
> !image-2021-05-18-11-33-59-379.png|width=440,height=203!
> I attached a zip file to reproduce:
> [^testzip.zip]
> NiFi 1.11.4 had no problems with those files.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to