Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 1CCE77FCA for ; Thu, 10 Nov 2011 02:00:17 +0000 (UTC) Received: (qmail 68099 invoked by uid 500); 10 Nov 2011 02:00:16 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 68076 invoked by uid 500); 10 Nov 2011 02:00:16 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 68052 invoked by uid 99); 10 Nov 2011 02:00:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2011 02:00:16 +0000 X-ASF-Spam-Status: No, hits=-1999.2 required=5.0 tests=ALL_TRUSTED,FB_GET_MEDS,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; Thu, 10 Nov 2011 02:00:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B3C0C4571E for ; Thu, 10 Nov 2011 01:59:52 +0000 (UTC) Date: Thu, 10 Nov 2011 01:59:52 +0000 (UTC) From: "Arpit Gupta (Assigned) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <362284733.16282.1320890392737.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1972429672.15983.1320884152690.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (HADOOP-7812) http call when no authorization is sent throws a 401 with no error resonse MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arpit Gupta reassigned HADOOP-7812: ----------------------------------- Assignee: Arpit Gupta > http call when no authorization is sent throws a 401 with no error resonse > -------------------------------------------------------------------------- > > Key: HADOOP-7812 > URL: https://issues.apache.org/jira/browse/HADOOP-7812 > Project: Hadoop Common > Issue Type: Improvement > Affects Versions: 0.20.205.0 > Reporter: Arpit Gupta > Assignee: Arpit Gupta > Attachments: HADOOP-7812.branch-0.20-security.patch > > > Currently if you make an http call to the namenode and do not send any authorization returns 401 as expected but no response content. > I would be nice if we could return some error response stating that the user provided no authorization. It would make it a little easier for people making the call from a browser to find out if something went wrong. > curl call > {code} > curl -i "http://NN:PORT/webhdfs/v1/tmp/webhdfs_data?op=gethomedirectory" > HTTP/1.1 401 Unauthorized > Content-Type: text/html; charset=utf-8 > WWW-Authenticate: Negotiate > Content-Length: 0 > Server: Jetty(6.1.26) > {code} -- 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