hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2440) webhdfs open a file and send 0 or invalid bufferSize,length, offest throws a 500, we should throw a 400
Date Mon, 24 Oct 2011 22:20:32 GMT

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

Tsz Wo (Nicholas), SZE commented on HDFS-2440:
----------------------------------------------

The zero bufferSize problem was fixed by HDFS-2427.

{noformat}
$curl -i -L "http://localhost:50070/webhdfs/foo/b.patch?op=OPEN&bufferSize=0"
HTTP/1.1 400 Bad Request
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(6.1.26)

{"RemoteException":{"exception":"IllegalArgumentException","javaClassName":"java.lang.IllegalArgumentException","message":"Invalid
value for webhdfs parameter \"buffersize\": Invalid parameter range: buffersize = 0 < 1"}}
{noformat}
                
> webhdfs open a file and send 0 or invalid bufferSize,length, offest throws a 500, we
should throw a 400
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-2440
>                 URL: https://issues.apache.org/jira/browse/HDFS-2440
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.205.0
>            Reporter: Arpit Gupta
>


--
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

        

Mime
View raw message