You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Zhijie Shen (JIRA)" <ji...@apache.org> on 2014/06/03 00:13:01 UTC

[jira] [Updated] (YARN-2121) TimelineAuthenticator#hasDelegationToken may throw NPE

     [ https://issues.apache.org/jira/browse/YARN-2121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhijie Shen updated YARN-2121:
------------------------------

    Attachment: YARN-2121.1.patch

Upload a patch to fix the problem, and add the corresponding test cases.

> 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
>         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)