hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (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 20:39:52 GMT

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

Tsz Wo (Nicholas), SZE commented on HADOOP-7812:

> +1 patch looks good.

On a second thought, throwing an exception affects the authentication protocol.
> 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:
>            Reporter: Arpit Gupta
>            Assignee: Arpit Gupta
>         Attachments: HADOOP-7812.branch-0.20-security.patch, 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


View raw message