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

ASF subversion and git services commented on NIFI-8787:
-------------------------------------------------------

Commit 44779216658c55a2278dbc523ba1b4b08b8ef083 in nifi's branch 
refs/heads/main from Peter Gyori
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4477921 ]

NIFI-8787: Wrapped hdfs.exists() call in UGI.doAs() in GetHDFS processor (#5217)

* NIFI-8787: Wrapped hdfs.exists() call in UGI.doAs() in GetHDFS processor

* NIFI-8787: Unit tests updated

> GetHDFS hdfs.exists() call not wrapped in UGI.doAs()
> ----------------------------------------------------
>
>                 Key: NIFI-8787
>                 URL: https://issues.apache.org/jira/browse/NIFI-8787
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.14.0
>            Reporter: Peter Gyori
>            Assignee: Peter Gyori
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In GetHDFS.performListing() before listing the files in the directory, it is 
> checked if the directory actually exists.
> However, the hdfs.exists(directoryPath) call is not wrapped in UGI.doAs(). 
> HDFS operations should be wrapped in UGI.doAs() just like in NIFI-4323.
> Also, it is important to call getUGI() before FileSystem operations because 
> that is where relogin and error handling is (like NIFI-7948).



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

Reply via email to