kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject kafka git commit: KAFKA-4012; Added #toString() to KerberosShortNamer
Date Fri, 12 Aug 2016 21:57:35 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 539633ba0 -> b18c3f5ca


KAFKA-4012; Added #toString() to KerberosShortNamer

Author: Bryan Baugher <bryan.baugher@cerner.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #1694 from bbaugher/KAFKA-4012


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/b18c3f5c
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/b18c3f5c
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/b18c3f5c

Branch: refs/heads/trunk
Commit: b18c3f5caba51a07ec514b5d04bca8b85bae3748
Parents: 539633b
Author: Bryan Baugher <bryan.baugher@cerner.com>
Authored: Fri Aug 12 22:57:17 2016 +0100
Committer: Ismael Juma <ismael@juma.me.uk>
Committed: Fri Aug 12 22:57:17 2016 +0100

----------------------------------------------------------------------
 .../kafka/common/security/kerberos/KerberosShortNamer.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/b18c3f5c/clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosShortNamer.java
----------------------------------------------------------------------
diff --git a/clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosShortNamer.java
b/clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosShortNamer.java
index 0b8759b..63538c7 100644
--- a/clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosShortNamer.java
+++ b/clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosShortNamer.java
@@ -95,7 +95,12 @@ public class KerberosShortNamer {
             if (result != null)
                 return result;
         }
-        throw new NoMatchingRule("No rules applied to " + toString());
+        throw new NoMatchingRule("No rules apply to " + kerberosName + ", rules " + principalToLocalRules);
+    }
+
+    @Override
+    public String toString() {
+        return "KerberosShortNamer(principalToLocalRules = " + principalToLocalRules + ")";
     }
 
 }


Mime
View raw message