Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1935 Security for timeline server
  3. YARN-2121

TimelineAuthenticator#hasDelegationToken may throw NPE

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • None
    • None
    • Reviewed

    Description

        private boolean hasDelegationToken(URL url) {
          return url.getQuery().contains(
              TimelineAuthenticationConsts.DELEGATION_PARAM + "=");
        }
      

      If the given url doesn't have any params at all. It will throw NPE.

      Attachments

        1. YARN-2121.1.patch
          4 kB
          Zhijie Shen

        Activity

          People

            zjshen Zhijie Shen
            zjshen Zhijie Shen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: