[
https://issues.apache.org/jira/browse/HDFS-5849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Nauroth updated HDFS-5849:
--------------------------------
Attachment: HDFS-5849.1.patch
I'm attaching a patch that fixes the bug in {{AclStorage#removeINodeAcl}} by
checking that the ACL entries are for an access ACL (not just a default ACL)
before attempting to restore the group permission bits. I've also added a new
test that demonstrates the problem.
> Removing ACL from an inode fails if it has only a default ACL.
> --------------------------------------------------------------
>
> Key: HDFS-5849
> URL: https://issues.apache.org/jira/browse/HDFS-5849
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: HDFS ACLs (HDFS-4685)
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Attachments: HDFS-5849.1.patch
>
>
> When removing an ACL, the logic must restore the group permission previously
> stored in an ACL entry back into the group permission bits. The logic for
> this in {{AclTransformation#removeINodeAcl}} assumes that the group entry
> must be found in the former ACL. This is not the case when removing the ACL
> from an inode that only had a default ACL and not an access ACL.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)