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

TestSecurityUtil fails when run with JDK8 because of empty principal names

    Details

    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Running TestSecurityUtil on JDK8 will fail:

      java.lang.IllegalArgumentException: Empty nameString not allowed
      	at sun.security.krb5.PrincipalName.validateNameStrings(PrincipalName.java:171)
      	at sun.security.krb5.PrincipalName.<init>(PrincipalName.java:393)
      	at sun.security.krb5.PrincipalName.<init>(PrincipalName.java:460)
      	at javax.security.auth.kerberos.KerberosPrincipal.<init>(KerberosPrincipal.java:120)
      	at org.apache.hadoop.security.TestSecurityUtil.isOriginalTGTReturnsCorrectValues(TestSecurityUtil.java:57)
      

      In JDK8, PrincipalName checks that its name is not empty and throws an IllegalArgumentException if it is empty. This didn't happen in JDK6/7.

        Attachments

        1. HADOOP-11267.1.patch
          2 kB
          Stephen Chu
        2. HADOOP-11267.2.patch
          2 kB
          Stephen Chu
        3. HADOOP-11267.2.patch
          2 kB
          Stephen Chu
        4. HADOOP-11267.4.patch
          1 kB
          Stephen Chu

          Activity

            People

            • Assignee:
              schu Stephen Chu
              Reporter:
              schu Stephen Chu
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: