hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Gupta (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-2428) webhdfs api parameter validation should be better
Date Mon, 10 Oct 2011 23:28:29 GMT

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

Arpit Gupta updated HDFS-2428:

    Summary: webhdfs api parameter validation should be better  (was: webhdfs mkdir call fails
with a 500 when an invalid permission is sent, we should return a 400)

Same issue can be seen for a different call invalid value for recursive is sent.

Request URI http://BB:50070/webhdfs/path?op=DELETE&recursive=invalid
Request Method: DELETE
HTTP/1.1 500 Internal Server Error
Request Content: {"RemoteException":{"className":"com.sun.jersey.api.ParamException$QueryParamException","message":"java.lang.IllegalArgumentException:
Failed to parse \"invalid\" to Boolean."}}
> webhdfs api parameter validation should be better
> -------------------------------------------------
>                 Key: HDFS-2428
>                 URL: https://issues.apache.org/jira/browse/HDFS-2428
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions:
>            Reporter: Arpit Gupta
> PUT Request: http://localhost:50070/webhdfs/some_path?op=MKDIRS&permission=955
> Exception returned
> HTTP/1.1 500 Internal Server Error
> {"RemoteException":{"className":"com.sun.jersey.api.ParamException$QueryParamException","message":"java.lang.NumberFormatException:
For input string: \"955\""}} 
> We should return a 400 with appropriate error message

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


View raw message