From 2b7a7bbe0f2ad0b3434c4dcf1f60051920d5b532 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Fri, 10 Feb 2017 10:09:31 -0800 Subject: [PATCH] HADOOP-14055. SwiftRestClient includes pass length in exception if auth fails. Contributed by Marcell Hegedus. --- .../org/apache/hadoop/fs/swift/auth/PasswordCredentials.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/auth/PasswordCredentials.java b/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/auth/PasswordCredentials.java index 3e65cb3ebb..40d8c77feb 100644 --- a/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/auth/PasswordCredentials.java +++ b/hadoop-tools/hadoop-openstack/src/main/java/org/apache/hadoop/fs/swift/auth/PasswordCredentials.java @@ -80,8 +80,7 @@ public void setUsername(String username) { @Override public String toString() { - return "user '" + username + '\'' + - " with password of length " + ((password == null) ? 0 : password.length()); + return "PasswordCredentials{username='" + username + "'}"; } }