You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Archana T (JIRA)" <ji...@apache.org> on 2015/07/09 05:59:04 UTC

[jira] [Created] (HDFS-8741) Proper error msg to be printed when invalid operation type is given to WebHDFS operations.

Archana T created HDFS-8741:
-------------------------------

             Summary: Proper error msg to be printed when invalid operation type is given to WebHDFS operations.
                 Key: HDFS-8741
                 URL: https://issues.apache.org/jira/browse/HDFS-8741
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: webhdfs
            Reporter: Archana T
            Priority: Minor


When wrong operation type is given to WebHDFS operations, following Error message is printed --

For ex: CREATE is called with GET instead of PUT--

HTTP/1.1 400 Bad Request
......
{"RemoteException":{"exception":"IllegalArgumentException","javaClassName":"java.lang.IllegalArgumentException","message":"Invalid value for webhdfs parameter \"op\": {color:red}No enum constant org.apache.hadoop.hdfs.web.resources.PutOpParam.Op.CREATE"}}{color}

Expected--
Valid Error message to be printed




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