hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Chu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-6741) Improve permission denied message when FSPermissionChecker#checkOwner fails
Date Thu, 24 Jul 2014 02:53:38 GMT

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

Stephen Chu updated HDFS-6741:
------------------------------

    Attachment: HDFS-6741.1.patch

Attaching small change to improve the error message with an explanation.

"Permission denied" ->
"Permission denied: User {user} does not own {inode.getFullPathName()}"

No unit test added because this just changes an exception message, which isn't being depended
on right now.

> 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: Stephen Chu
>            Priority: Minor
>         Attachments: HDFS-6741.1.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.2#6252)

Mime
View raw message