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

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: