You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2019/09/13 13:54:00 UTC
[jira] [Commented] (HDFS-14848) ACE for Non Existing Paths
[ https://issues.apache.org/jira/browse/HDFS-14848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16929217#comment-16929217 ]
Ayush Saxena commented on HDFS-14848:
-------------------------------------
Thanx [~akki261001] for putting this up.
Actually the reason for ACE is :
{code:java}
try {
checkTraverse(pc, iip, dirOp);
} catch (ParentNotDirectoryException pnde) {
if (!isCreate) {
throw new AccessControlException(pnde.getMessage());
}
throw pnde;
}
{code}
Ideally it was to prevent {{ParentNotDirectoryException}}, but ACE doesn't seems to be an ideal substitute to it. Changing to FileNotFoundException would be a better choice, it could atleast be near the context. Anyway ACE has different handling too, as in {{FsNamesystem}} for audit logging only ACE is caught, so here unnecessarily this will also get caught.
will upload patch changinf to FNF.
> ACE for Non Existing Paths
> --------------------------
>
> Key: HDFS-14848
> URL: https://issues.apache.org/jira/browse/HDFS-14848
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Akshay Agarwal
> Assignee: Ayush Saxena
> Priority: Major
>
> Access control exception for several operations in some cases when the path doesn't exist.
> For eg: SetStoragePolicy, getStoragePolicy, getBlockLocations and many other.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org