hadoop-common-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/HADOOP-11267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14198996#comment-14198996

Hadoop QA commented on HADOOP-11267:

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  against trunk revision bc80251.

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new or modified
test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of
javac compiler warnings.

    {color:green}+1 javadoc{color}.  There were no new javadoc warning messages.

    {color:green}+1 eclipse:eclipse{color}.  The patch built with eclipse:eclipse.

    {color:green}+1 findbugs{color}.  The patch does not introduce any new Findbugs (version
2.0.3) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number
of release audit warnings.

    {color:red}-1 core tests{color}.  The patch failed these unit tests in hadoop-common-project/hadoop-common:


    {color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/5035//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/5035//console

This message is automatically generated.

> 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
>         Attachments: HADOOP-11267.1.patch, HADOOP-11267.2.patch, HADOOP-11267.2.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

View raw message