[
https://issues.apache.org/jira/browse/NIFI-7760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17183880#comment-17183880
]
Peter Turcsanyi commented on NIFI-7760:
---------------------------------------
I think the root cause is due to mixing up the file mode and the file
permissions: the permissions are only the 7 least significant bits of the file
mode but the file mode is wider and can contain further info (like the sticky
bit).
So the {{if (fileModeOctal > 0777 || fileModeOctal < 00)}} check in
{{FileInfo.permissionToString()}} not relevant and should be removed.
> UnpackContent failing on "Invalid permission numerals"
> ------------------------------------------------------
>
> Key: NIFI-7760
> URL: https://issues.apache.org/jira/browse/NIFI-7760
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Matt Burgess
> Priority: Blocker
> Fix For: 1.13.0
>
>
> A community user ran into an issue with UnpackContent in NiFi 1.12.0 that did
> not occur in 1.11.4. Files going through UnpackContent now may generate an
> error on "Invalid permission numerals", perhaps even if the file mode on the
> files is legitimate (0744 for example).
> This check was added via NIFI-6128, a unit test should be added to reproduce
> the issue alongside any fix.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)