[
https://issues.apache.org/jira/browse/NIFI-920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15341685#comment-15341685
]
Joseph Gresock commented on NIFI-920:
-------------------------------------
I also encountered this issue, but another question is why some file paths fail
at all. In my case, one of the files in a .tar had an "n" with an overbar, and
this caused UnpackContent to fail. I'm hopeful that NIFI-1759 may fix the
underlying issue, since commons-compress is likely the culprit.
I'm very interested in having at least the rollback issue fixed, though.
> UnpackContent can continuously rollback on java.nio.InvalidPathException
> ------------------------------------------------------------------------
>
> Key: NIFI-920
> URL: https://issues.apache.org/jira/browse/NIFI-920
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Brandon DeVries
> Priority: Minor
>
> In UnpackContent, file.toPath() is called without catching
> java.nio.file.InvalidPathException:
> https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/UnpackContent.java#L265#L266
> https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/UnpackContent.java#L316#L318
> This bubbles up out of the processor and causes a rollback, instead of simply
> failing the file in the processor.
> This could be fixed in each "Unpacker" implementation (possibly by catching
> and wrapping in a ProcessException), or the catch in the OnTrigger method
> here:
> https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/UnpackContent.java#L238
> ... could simply be changed to "catch (final ProcessException |
> InvalidPathException e)". Whoever implements the fix can think that all the
> way through.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)