[ https://issues.apache.org/jira/browse/HDFS-6741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14186488#comment-14186488 ]
Hudson commented on HDFS-6741: ------------------------------ FAILURE: Integrated in Hadoop-trunk-Commit #6365 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/6365/]) HDFS-6741. Improve permission denied message when FSPermissionChecker#checkOwner fails. Contributed by Stephen Chu and Harsh J. (harsh) (harsh: rev 0398db19b2c4558a9f08ac2700a27752748896fa) * hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSPermission.java * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSPermissionChecker.java * hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFSPermissionChecker.java > Improve permission denied message when FSPermissionChecker#checkOwner fails > --------------------------------------------------------------------------- > > Key: HDFS-6741 > URL: https://issues.apache.org/jira/browse/HDFS-6741 > Project: Hadoop HDFS > Issue Type: Improvement > Affects Versions: 3.0.0, 2.5.0 > Reporter: Stephen Chu > Assignee: Harsh J > Priority: Trivial > Labels: supportability > Fix For: 2.7.0 > > Attachments: HDFS-6741.1.patch, HDFS-6741.2.patch, HDFS-6741.2.patch > > > Currently, FSPermissionChecker#checkOwner throws an AccessControlException > with a simple "Permission denied" message. > When users try to set an ACL without ownership permissions, they'll see > something like: > {code} > [schu@hdfs-vanilla-1 hadoop]$ hdfs dfs -setfacl -m user:schu:--- /tmp > setfacl: Permission denied > {code} > It'd be helpful if the message had an explanation why the permission was > denied to avoid confusion for users who aren't familiar with permissions. -- This message was sent by Atlassian JIRA (v6.3.4#6332)