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 "Chris Nauroth (JIRA)" <ji...@apache.org> on 2014/03/03 20:30:22 UTC
[jira] [Updated] (HDFS-6039) Uploading a File under a Dir with
default acls throws "Duplicated ACLFeature"
[ https://issues.apache.org/jira/browse/HDFS-6039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth updated HDFS-6039:
--------------------------------
Attachment: HDFS-6039.1.patch
This patch fixes the bug by skipping copy of the default ACL during renames. This is consistent with the behavior of Linux ACLs. If you rename an existing file or directory underneath a directory that has a default ACL, then it doesn't copy the default ACL. The renamed file or directory retains its existing ACL (or plain permissions).
I added 2 new tests in {{FSAclBaseTest}} to cover renames of files and directories. I also added a CLI test that replicates what Yesha reported. These tests failed before applying the patch, and then passed afterwards.
> Uploading a File under a Dir with default acls throws "Duplicated ACLFeature"
> -----------------------------------------------------------------------------
>
> Key: HDFS-6039
> URL: https://issues.apache.org/jira/browse/HDFS-6039
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 3.0.0, 2.4.0
> Reporter: Yesha Vora
> Assignee: Chris Nauroth
> Attachments: HDFS-6039.1.patch
>
>
> Steps followed:
> 1) Create a Dir /tmp/HDFSAcls/Dir-0 and set default acl
> hdfs dfs -setfacl -m default:user:user_1:rw- /tmp/HDFSAcls/Dir-0
> 2) Upload a File under Dir-0 using copyFromLocal command
> hdfs dfs -copyFromLocal /tmp/file-11 /tmp/HDFSAcls/Dir-0/Child_file
> copyFromLocal: Duplicated ACLFeature
> The upload of file fails with Duplicated Acl Feature Error.
--
This message was sent by Atlassian JIRA
(v6.2#6252)