Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8751

NPE in Token.toString() when Token is constructed using null identifier

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: security
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Token constructor allows null to be passed leading to NPE in Token.toString(). Simple fix is to check for null in constructor and use empty byte arrays.

        Attachments

        1. HADOOP-8751.patch
          3 kB
          Vlad Rozov
        2. HADOOP-8751-01.patch
          4 kB
          Kanaka Kumar Avvaru
        3. HADOOP-8751-01.patch
          4 kB
          Kanaka Kumar Avvaru
        4. HADOOP-8751-02.patch
          4 kB
          Kanaka Kumar Avvaru
        5. HADOOP-8751-03.patch
          3 kB
          Kanaka Kumar Avvaru

          Issue Links

            Activity

              People

              • Assignee:
                kanaka Kanaka Kumar Avvaru
                Reporter:
                vrozov Vlad Rozov
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: