[
https://issues.apache.org/jira/browse/HADOOP-12906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Loughran updated HADOOP-12906:
------------------------------------
Attachment: HADOOP-12906-001.patch
Patch 001.
# handles 404s with a FileNotFoundException and the URL
# always includes the URL on auth exceptions, on the off chance somebody might
want to know what web server/service is refusing requests
I'm not writing a test for it in the Hadoop codebase unless someone can
suggest an existing webapp test suite I could add it to.
> 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)