[ 
https://issues.apache.org/jira/browse/NIFI-8787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Bende resolved NIFI-8787.
-------------------------------
    Fix Version/s: 1.15.0
       Resolution: Fixed

> 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
>             Fix For: 1.15.0
>
>          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