Browse Source

AMBARI-18878. After entering wrong admin kdc credentials UI does not handle it and shows HTTP error 500 (intermittent) (dlysnichenko)

Lisnichenko Dmitro 8 years ago
parent
commit
ed87ae3e62

+ 1 - 1
ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java

@@ -502,7 +502,7 @@ public class MITKerberosOperationHandler extends KerberosOperationHandler {
       } else if (stdErr.contains("Cannot find KDC for requested realm while initializing kadmin interface")) {
         throw new KerberosRealmException(stdErr);
       } else {
-        throw new KerberosOperationException("Unexpected error condition executing the kadmin command");
+        throw new KerberosOperationException(String.format("Unexpected error condition executing the kadmin command. STDERR: %s", stdErr));
       }
     }