hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinayakumar B (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9337) Should check required params in WebHDFS to avoid NPE
Date Fri, 04 Nov 2016 06:01:58 GMT

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

Vinayakumar B commented on HDFS-9337:
-------------------------------------

according to [doc|https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Create_and_Write_to_a_File],
there are many other commands for which different params are mandatory, even though there
is no NPE for them. 
In doc, check the examples given, params without square brackets are mandatory. They can all
be validated.

please update the patch to cover all those mandory params for different ops.

> Should check required params in WebHDFS to avoid NPE
> ----------------------------------------------------
>
>                 Key: HDFS-9337
>                 URL: https://issues.apache.org/jira/browse/HDFS-9337
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Jagadesh Kiran N
>            Assignee: Jagadesh Kiran N
>         Attachments: HDFS-9337_00.patch, HDFS-9337_01.patch, HDFS-9337_02.patch, HDFS-9337_03.patch,
HDFS-9337_04.patch, HDFS-9337_05.patch, HDFS-9337_06.patch, HDFS-9337_07.patch, HDFS-9337_08.patch,
HDFS-9337_09.patch, HDFS-9337_10.patch, HDFS-9337_11.patch, HDFS-9337_12.patch, HDFS-9337_13.patch
>
>
> {code}
>  curl -i -X PUT "http://10.19.92.127:50070/webhdfs/v1/kiran/sreenu?op=RENAMESNAPSHOT&snapshotname=SNAPSHOTNAME"
> {code}
> Null point exception will be thrown
> {code}
> {"RemoteException":{"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException","message":null}}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message