You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by vi...@apache.org on 2014/11/06 09:04:41 UTC
[30/43] git commit: HADOOP-11267. TestSecurityUtil fails when run
with JDK8 because of empty principal names. Contributed by Stephen Chu.
HADOOP-11267. TestSecurityUtil fails when run with JDK8 because of empty principal names. Contributed by Stephen Chu.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8549fa5d
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8549fa5d
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8549fa5d
Branch: refs/heads/HDFS-EC
Commit: 8549fa5dc95d3e94e49c9b92734aec0509693a2a
Parents: 834e931
Author: Haohui Mai <wh...@apache.org>
Authored: Wed Nov 5 15:25:35 2014 -0800
Committer: Haohui Mai <wh...@apache.org>
Committed: Wed Nov 5 15:34:27 2014 -0800
----------------------------------------------------------------------
hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++
.../test/java/org/apache/hadoop/security/TestSecurityUtil.java | 4 ----
2 files changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/8549fa5d/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index dbfb7df..422bc3e 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -403,6 +403,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-11266. Remove no longer supported activation properties for packaging
from pom. (Masatake Iwasaki via wheat9)
+ HADOOP-11267. TestSecurityUtil fails when run with JDK8 because of empty
+ principal names. (Stephen Chu via wheat9)
+
Release 2.6.0 - UNRELEASED
INCOMPATIBLE CHANGES
http://git-wip-us.apache.org/repos/asf/hadoop/blob/8549fa5d/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestSecurityUtil.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestSecurityUtil.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestSecurityUtil.java
index 8c60734..4616c90 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestSecurityUtil.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestSecurityUtil.java
@@ -56,12 +56,8 @@ public class TestSecurityUtil {
assertFalse(SecurityUtil.isTGSPrincipal
(new KerberosPrincipal("blah")));
assertFalse(SecurityUtil.isTGSPrincipal
- (new KerberosPrincipal("")));
- assertFalse(SecurityUtil.isTGSPrincipal
(new KerberosPrincipal("krbtgt/hello")));
assertFalse(SecurityUtil.isTGSPrincipal
- (new KerberosPrincipal("/@")));
- assertFalse(SecurityUtil.isTGSPrincipal
(new KerberosPrincipal("krbtgt/foo@FOO")));
}