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

Chris Nauroth updated HADOOP-10352:
-----------------------------------

    Attachment: HADOOP-10352.1.patch

The attached patch splits off a separate list of just the access ACL entries.  
Then, as the command recurses through the tree, files get just the access ACL 
entries and directories get the full list of access and default ACL entries.  
This matches the behavior of Linux setfacl.

I also added tests covering each of the 3 APIs in {{TestAclCLI}}.

> Recursive setfacl erroneously attempts to apply default ACL to files.
> ---------------------------------------------------------------------
>
>                 Key: HADOOP-10352
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10352
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 3.0.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HADOOP-10352.1.patch
>
>
> When calling setfacl -R with an ACL spec containing default ACL entries, the 
> command can fail if there is a mix of directories and files underneath the 
> specified path.  It attempts to set the default ACL entries on the files, but 
> only directories can have a default ACL.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to