hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2121) TimelineAuthenticator#hasDelegationToken may throw NPE
Date Sat, 07 Jun 2014 15:17:04 GMT

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

Hudson commented on YARN-2121:
------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk #1794 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1794/])
YARN-2121. Fixed NPE handling in Timeline Server's TimelineAuthenticator. Contributed by Zhijie
Shen. (vinodkv: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1601000)
* /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineAuthenticator.java
* /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/api/impl/TestTimelineAuthenticator.java


> TimelineAuthenticator#hasDelegationToken may throw NPE
> ------------------------------------------------------
>
>                 Key: YARN-2121
>                 URL: https://issues.apache.org/jira/browse/YARN-2121
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Zhijie Shen
>            Assignee: Zhijie Shen
>             Fix For: 2.5.0
>
>         Attachments: YARN-2121.1.patch
>
>
> {code}
>   private boolean hasDelegationToken(URL url) {
>     return url.getQuery().contains(
>         TimelineAuthenticationConsts.DELEGATION_PARAM + "=");
>   }
> {code}
> If the given url doesn't have any params at all. It will throw NPE.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message