You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Arpit Gupta (Created) (JIRA)" <ji...@apache.org> on 2011/11/10 01:15:52 UTC

[jira] [Created] (HADOOP-7812) http call when no authorization is sent throws a 401 with no error resonse

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


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