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

Mingliang Liu commented on HADOOP-12906:
----------------------------------------

+1 (non-binding).

Though it's unrelated, I think it's good to have switch-case for branching resp 
code.

> 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