[
https://issues.apache.org/jira/browse/NIFI-9716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497413#comment-17497413
]
ASF subversion and git services commented on NIFI-9716:
-------------------------------------------------------
Commit 39483b9c121b11abbc00f12232075ef4328a17ee in nifi's branch
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=39483b9 ]
NIFI-9716, NIFI-9577: Addressed issue in the PathFilter for GetFile / ListFile.
For any file that is found in the Input Directory directly, it was previously
being listed/fetched even if it didn't match the PathFilter. Additionally,
updated the code to create a new File FIlter for every invocation of onTrigger.
This was necessary for NIFI-9577 because the directory to monitor supports
Expression Language and as a result may change from invocation to invocation,
if using a function such as now() but the PathFilter would always relativize
the path based on the value that was obtained when the processor was scheduled.
Signed-off-by: Joe Gresock <[email protected]>
This closes #5788.
> ListFile / GetFile may pick up files in the Input Directory even when the
> Path Filter should prevent it
> -------------------------------------------------------------------------------------------------------
>
> Key: NIFI-9716
> URL: https://issues.apache.org/jira/browse/NIFI-9716
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Fix For: 1.16.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)