hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haohui Mai (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-11267) TestSecurityUtil fails when run with JDK8 because of empty principal names
Date Wed, 05 Nov 2014 23:35:34 GMT

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

Haohui Mai updated HADOOP-11267:
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.7.0
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

I've committed the patch to trunk and branch-2. Thanks [~schu] for the contribution.

> TestSecurityUtil fails when run with JDK8 because of empty principal names
> --------------------------------------------------------------------------
>
>                 Key: HADOOP-11267
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11267
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security, test
>    Affects Versions: 2.3.0
>            Reporter: Stephen Chu
>            Assignee: Stephen Chu
>            Priority: Minor
>             Fix For: 2.7.0
>
>         Attachments: HADOOP-11267.1.patch, HADOOP-11267.2.patch, HADOOP-11267.2.patch,
HADOOP-11267.4.patch
>
>
> Running {{TestSecurityUtil}} on JDK8 will fail:
> {code}
> 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)
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message