Browse Source

HADOOP-8445. Token should not print the password in toString (Ravi Prakash via tgraves)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1344264 13f79535-47bb-0310-9956-ffa450edef68
Thomas Graves 13 năm trước cách đây
mục cha
commit
d00a5a1530
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 0
      CHANGES.txt
  2. 0 2
      src/core/org/apache/hadoop/security/token/Token.java

+ 3 - 0
CHANGES.txt

@@ -10,6 +10,9 @@ Release 1.2.0 - unreleased
 
   BUG FIXES
 
+    HADOOP-8445. Token should not print the password in toString
+    (Ravi Prakash via tgraves)
+
 Release 1.1.0 - unreleased
 
   INCOMPATIBLE CHANGES

+ 0 - 2
src/core/org/apache/hadoop/security/token/Token.java

@@ -265,8 +265,6 @@ public class Token<T extends TokenIdentifier> implements Writable {
     StringBuilder buffer = new StringBuilder();
     buffer.append("Ident: ");
     addBinaryBuffer(buffer, identifier);
-    buffer.append(", Pass: ");
-    addBinaryBuffer(buffer, password);
     buffer.append(", Kind: ");
     buffer.append(kind.toString());
     buffer.append(", Service: ");