You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Qiang Zhang (JIRA)" <ji...@apache.org> on 2017/02/06 07:36:41 UTC

[jira] [Updated] (RANGER-1353) NameRules should be set to the default value in Kerberized Environment

     [ 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)