hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Abdelnur (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-3903) HttpFs does not set permissions correctly for MKDIR
Date Fri, 07 Sep 2012 19:55:08 GMT

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

Alejandro Abdelnur commented on HDFS-3903:
------------------------------------------

This seems like a bug in {{DFSClient}} which applies the default umask to the given permission.

{code}
  public boolean mkdirs(String src, FsPermission permission,
      boolean createParent) throws IOException {
    if (permission == null) {
      permission = FsPermission.getDefault();
    }
    FsPermission masked = permission.applyUMask(dfsClientConf.uMask);
    return primitiveMkdir(src, masked, createParent);
  }
{code}

                
> HttpFs does not set permissions correctly for MKDIR
> ---------------------------------------------------
>
>                 Key: HDFS-3903
>                 URL: https://issues.apache.org/jira/browse/HDFS-3903
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Alejandro Abdelnur
>            Priority: Critical
>
> Per Romain on HDFS-3491: This is still broken. Octal is correctly accepted but not applied
when during a MKDIR:
> {noformat}
> romain@runreal:~/projects/hue$ curl -X PUT "http://localhost:14000/webhdfs/v1/tmp/test-perm-httpfs?permission=01777&op=MKDIRS&user.name=hue&doas=hue"
> {"boolean":true}
> romain@runreal:~/projects/hue$ curl "http://localhost:14000/webhdfs/v1/tmp/test-perm-httpfs?op=GETFILESTATUS&user.name=hue&doas=hue"
> {"FileStatus":{"pathSuffix":"","type":"DIRECTORY","length":0,"owner":"hue","group":"supergroup","permission":"755","accessTime":0,"modificationTime":1345658456869,"blockSize":0,"replication":0}}
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message