hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Gupta (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7812) http call when no authorization is sent throws a 401 with no error resonse
Date Thu, 10 Nov 2011 00:23:51 GMT

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

Arpit Gupta commented on HADOOP-7812:
-------------------------------------

here are the namenode logs


{code}
011-11-10 00:18:18,425 DEBUG org.mortbay.log: REQUEST /webhdfs/v1/tmp/webhdfs_data on org.mortbay.jetty.HttpConnection@6e2c03ff
2011-11-10 00:18:18,425 DEBUG org.mortbay.log: sessionManager=org.mortbay.jetty.servlet.HashSessionManager@4c650892
2011-11-10 00:18:18,425 DEBUG org.mortbay.log: session=null
2011-11-10 00:18:18,425 DEBUG org.mortbay.log: servlet=com.sun.jersey.spi.container.servlet.ServletContainer-270142182
2011-11-10 00:18:18,425 DEBUG org.mortbay.log: chain=safety->SPNEGO->com.sun.jersey.spi.container.servlet.ServletContainer-270142182
2011-11-10 00:18:18,425 DEBUG org.mortbay.log: servlet holder=com.sun.jersey.spi.container.servlet.ServletContainer-270142182
2011-11-10 00:18:18,425 DEBUG org.mortbay.log: call filter safety
2011-11-10 00:18:18,425 DEBUG org.mortbay.log: call filter SPNEGO
2011-11-10 00:18:18,428 DEBUG org.apache.hadoop.security.authentication.server.AuthenticationFilter:
Request [http://NN:PORT/webhdfs/v1/tmp/webhdfs_data?op=gethomedirectory] triggering authentication
2011-11-10 00:18:18,428 DEBUG org.mortbay.log: RESPONSE /webhdfs/v1/tmp/webhdfs_data  401
2011-11-10 00:18:18,429 DEBUG org.mortbay.log: EOF
{code}
                
> 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

        

Mime
View raw message