hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12906) AuthenticatedURL translates a 404/Not Found into an AuthenticationException. It isn't
Date Tue, 08 Mar 2016 19:46:40 GMT

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

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

Fixed stack. Note how the URL is complete, meaning is obvious, nobody will mistake for a kerberos
problem, etc, etc.

{code}
  java.io.FileNotFoundException: http://localhost:61098/api/v1/applications/application_1111_0000/jobs?user.name=stevel
  at org.apache.hadoop.security.authentication.client.AuthenticatedURL.extractToken(AuthenticatedURL.java:275)
  at org.apache.hadoop.security.authentication.client.PseudoAuthenticator.authenticate(PseudoAuthenticator.java:77)
  at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:212)
  at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:216)
  at org.apache.spark.deploy.history.yarn.rest.SpnegoUrlConnector$$anonfun$1.apply(SpnegoUrlConnector.scala:127)
  at org.apache.spark.deploy.history.yarn.rest.SpnegoUrlConnector$$anonfun$1.apply(SpnegoUrlConnector.scala:124)
  at org.apache.spark.deploy.history.yarn.rest.PrivilegedFunction.run(PrivilegedFunction.scala:31)
  at java.security.AccessController.doPrivileged(Native Method)
  at javax.security.auth.Subject.doAs(Subject.java:415)
  at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1708)
{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
>
> 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)

Mime
View raw message