[ 
https://issues.apache.org/jira/browse/HADOOP-10277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13882181#comment-13882181
 ] 

Vinay commented on HADOOP-10277:
--------------------------------

Hi Chris,
I got the issue. 
Issue was {{String.split()}} will not add empty trailing strings to parsed 
array. 
This can be fixed.

But my doubt is, whether removing the mask is allowed ?

My setfacl throws error when I try to remove mask entry in my suse linux box
{noformat}vinay@host-10-18-40-99:~> setfacl -x mask:: testAcl/
setfacl: testAcl/: Malformed access ACL 
`user::rwx,user:vinay:r--,group::r-x,group:users:r-x,other::r-x': Missing or 
wrong entry at entry 5
vinay@host-10-18-40-99:~> setfacl -x mask testAcl/
setfacl: testAcl/: Malformed access ACL 
`user::rwx,user:vinay:r--,group::r-x,group:users:r-x,other::r-x': Missing or 
wrong entry at entry 5{noformat}


Please validate whether this is correct behaviour or whether we need to support 
removal of mask entries

> setfacl -x fails to parse ACL spec if trying to remove the mask entry.
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-10277
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10277
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: HDFS ACLs (HDFS-4685)
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>
> You should be able to use setfacl -x to remove the mask entry (which then 
> triggers recalculation of an automatically inferred mask if the file has an 
> extended ACL).  Right now, this causes a failure to parse the ACL spec due to 
> a bug in {{AclEntry#parseAclSpec}}.



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

Reply via email to