[ 
https://issues.apache.org/jira/browse/RANGER-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Qiang Zhang updated RANGER-1353:
--------------------------------
    Description: 
The code which have problem can be found in Java method EmbeddedServer.start():
{code}
String nameRules = getConfig(ADMIN_NAME_RULES);
if (getConfig(AUTHENTICATION_TYPE) != null
        && 
getConfig(AUTHENTICATION_TYPE).trim().equalsIgnoreCase(AUTH_TYPE_KERBEROS)
        && SecureClientLogin.isKerberosCredentialExists(principal,keytab)) {
 ...
}
{code}
it will cause java.lang.NullPointerException

  was:
The code which have problem can be found in Java method EmbeddedServer.start():
{code}
String nameRules = getConfig(ADMIN_NAME_RULES);
                        if (getConfig(AUTHENTICATION_TYPE) != null
                                        && 
getConfig(AUTHENTICATION_TYPE).trim().equalsIgnoreCase(AUTH_TYPE_KERBEROS)
                                        && 
SecureClientLogin.isKerberosCredentialExists(principal,keytab)) {
 ...
}
{code}
it will cause java.lang.NullPointerException


> NameRules should be set to the default value in Kerberized Environment
> ----------------------------------------------------------------------
>
>                 Key: RANGER-1353
>                 URL: https://issues.apache.org/jira/browse/RANGER-1353
>             Project: Ranger
>          Issue Type: Bug
>          Components: kms, Ranger
>            Reporter: Qiang Zhang
>            Assignee: Qiang Zhang
>              Labels: patch
>
> The code which have problem can be found in Java method 
> EmbeddedServer.start():
> {code}
> String nameRules = getConfig(ADMIN_NAME_RULES);
> if (getConfig(AUTHENTICATION_TYPE) != null
>       && 
> getConfig(AUTHENTICATION_TYPE).trim().equalsIgnoreCase(AUTH_TYPE_KERBEROS)
>       && SecureClientLogin.isKerberosCredentialExists(principal,keytab)) {
>  ...
> }
> {code}
> it will cause java.lang.NullPointerException



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to