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

Daryn Sharp commented on HADOOP-10944:
--------------------------------------

The fix is not straightforward since the {{AbstractFileSystem}} methods do not 
allow checked exceptions, while UGI methods may throw {{IOException}}.  One 
possible approach yet less buggy approach is ignoring an exception while 
getting the current UGI user and falling back to the property.

> AbstractFileSystem may not return correct home directory
> --------------------------------------------------------
>
>                 Key: HADOOP-10944
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10944
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0-alpha, 3.0.0
>            Reporter: Daryn Sharp
>
> {{AbstractFileSystem#getHomeDirectory}} uses the property "user.name" instead 
> of the current UGI user.  This is erroneous for proxy users, users with a TGT 
> principal not matching the local system user, nor custom ugis via 
> {{UGI.createRemoteUser}}.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to