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

Hudson commented on HDFS-3309:
------------------------------

Integrated in Hadoop-Hdfs-trunk #1028 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-trunk/1028/])
    HDFS-3309. HttpFS (Hoop) chmod not supporting octal and sticky bit 
permissions. (tucu) (Revision 1331493)

     Result = FAILURE
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1331493
Files : 
* 
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/FSOperations.java
* 
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSParams.java
* 
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/TestHttpFSFileSystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

                
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
>                 Key: HDFS-3309
>                 URL: https://issues.apache.org/jira/browse/HDFS-3309
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Romain Rigaux
>            Assignee: Alejandro Abdelnur
>             Fix For: 2.0.0
>
>         Attachments: HDFS-3309.patch, HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and 
> sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT 
> "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain";
>  
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter 
> [permission], invalid value [01777], value must be 
> [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT 
> "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain";
>  
> echo $?
> 0
> curl -L -X PUT 
> "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain";
>  
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter 
> [permission], invalid value [999999], value must be 
> [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to