Parcourir la source

HADOOP-12324. Better exception reporting in SaslPlainServer. (Mike Yoder via stevel)

Steve Loughran il y a 9 ans
Parent
commit
4073539118

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -184,6 +184,9 @@ Release 2.8.0 - UNRELEASED
     HADOOP-12369. Point hadoop-project/pom.xml java.security.krb5.conf
     within target folder. (wang)
 
+    HADOOP-12324. Better exception reporting in SaslPlainServer.
+    (Mike Yoder via stevel)
+
   BUG FIXES
 
     HADOOP-12124. Add HTrace support for FsShell (cmccabe)

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SaslPlainServer.java

@@ -105,7 +105,7 @@ public class SaslPlainServer implements SaslServer {
         authz = ac.getAuthorizedID();
       }
     } catch (Exception e) {
-      throw new SaslException("PLAIN auth failed: " + e.getMessage(), e);
+      throw new SaslException("PLAIN auth failed: " + e.toString(), e);
     } finally {
       completed = true;
     }