You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Robert Levas (JIRA)" <ji...@apache.org> on 2015/01/26 15:12:34 UTC
[jira] [Updated] (AMBARI-9324) Kerberos: when unable to connect to
KDC admin, need to inform user
[ https://issues.apache.org/jira/browse/AMBARI-9324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Levas updated AMBARI-9324:
---------------------------------
Attachment: AMBARI-9324_01.patch
Updated error handling to provide expected results when failures are encountered.
Patch File [^AMBARI-9324_01.patch]
> Kerberos: when unable to connect to KDC admin, need to inform user
> ------------------------------------------------------------------
>
> Key: AMBARI-9324
> URL: https://issues.apache.org/jira/browse/AMBARI-9324
> Project: Ambari
> Issue Type: Task
> Components: ambari-server
> Affects Versions: 2.0.0
> Reporter: Robert Levas
> Assignee: Robert Levas
> Labels: kerberos
> Fix For: 2.0.0
>
> Attachments: AMBARI-9324_01.patch
>
>
> This appears to be happening when the KDC and/or KDC Admin hosts do not point to a valid KDC, and when the relevant KDC does not _handle_ the indicated realm.
> For the *host* issue, (in the cases that I tested), a {{org.apache.ambari.server.serveraction.kerberos.KerberosKDCConnectionException}} is being thrown but not caught to re-throw a {{java.lang.IllegalArgumentException}}, which would generate the expected 400 error.
> For the *realm* issue, the following error string is not being captured by the logic to produce a {{org.apache.ambari.server.serveraction.kerberos.KerberosRealmException}}.
> {code}
> kadmin: Cannot find KDC for requested realm while initializing kadmin interface
> {code}
> In any case, {{org.apache.ambari.server.serveraction.kerberos.KerberosRealmException}} is not being caught to re-throw a {{java.lang.IllegalArgumentException}}, which would generate the expected 400 error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)