ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject [2/2] ambari git commit: AMBARI-18878. After entering wrong admin kdc credentials UI does not handle it and shows HTTP error 500 (intermittent) (dlysnichenko)
Date Tue, 15 Nov 2016 11:14:36 GMT
AMBARI-18878. After entering wrong admin kdc credentials UI does not handle it and shows HTTP
error 500 (intermittent) (dlysnichenko)


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

Branch: refs/heads/branch-2.5
Commit: ed87ae3e62326a3aa7aae136ad3e7b53be141d09
Parents: 6d969db
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Tue Nov 15 13:13:34 2016 +0200
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Tue Nov 15 13:14:22 2016 +0200

----------------------------------------------------------------------
 .../server/serveraction/kerberos/MITKerberosOperationHandler.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ed87ae3e/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java
b/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java
index a21d330..32aa19d 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java
+++ b/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));
       }
     }
 


Mime
View raw message