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

Steve Loughran commented on HADOOP-12906:
-----------------------------------------

I thought of a switch, but then wondered which ones to handle. Bad argument 403 
and server error 500 are the big two. Just doing 401 simplified the patch and 
was trivial to test in my (failing) test elsewhere

> AuthenticatedURL translates a 404/Not Found into an AuthenticationException. 
> It isn't
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-12906
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12906
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io, security
>    Affects Versions: 2.8.0
>            Reporter: Steve Loughran
>            Priority: Minor
>         Attachments: HADOOP-12906-001.patch
>
>
> If you ask for a URL that isn't there, {{AuthenticatedURL}} raises an 
> exception saying you are unauthed. 
> It's not checking the response code; 404 is an error all of its own, which 
> can be uprated as a FileNotFound Exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to