Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 643A57581 for ; Wed, 12 Oct 2011 02:37:34 +0000 (UTC) Received: (qmail 65843 invoked by uid 500); 12 Oct 2011 02:37:34 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 65683 invoked by uid 500); 12 Oct 2011 02:37:33 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 65672 invoked by uid 99); 12 Oct 2011 02:37:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 02:37:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 02:37:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D8462303497 for ; Wed, 12 Oct 2011 02:37:11 +0000 (UTC) Date: Wed, 12 Oct 2011 02:37:11 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (Updated) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1492252512.3469.1318387031887.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2079974636.16371.1318280069752.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-2428) webhdfs api parameter validation should be better MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HDFS-2428: ----------------------------------------- Attachment: h2428_20111011.patch h2428_20111011_0.20s.patch > 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: 0.20.205.0 > Reporter: Arpit Gupta > Attachments: h2428_20111011.patch, h2428_20111011_0.20s.patch > > > 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