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

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

FAILURE: Integrated in Hadoop-Hdfs-trunk #1767 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-trunk/1767/])
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)

Reply via email to