You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Dazhuang Su (JIRA)" <ji...@apache.org> on 2017/03/08 09:23:38 UTC
[jira] [Created] (HADOOP-14155) KerberosName.replaceParameters()
may throw java.lang.ArrayIndexOutOfBoundsException
Dazhuang Su created HADOOP-14155:
------------------------------------
Summary: KerberosName.replaceParameters() may throw java.lang.ArrayIndexOutOfBoundsException
Key: HADOOP-14155
URL: https://issues.apache.org/jira/browse/HADOOP-14155
Project: Hadoop Common
Issue Type: Bug
Components: security
Affects Versions: 2.7.3
Reporter: Dazhuang Su
Priority: Minor
In core-site.xml:
<property>
<name>hadoop.security.auth_to_local</name>
<value>
RULE:[1:$1](.*)
RULE:[2:$1$2](.*)
</value>
</property>
KerberosName.replaceParameters() replaces the numbered parameters of the form $n where n is from 1 to the length of params. Normal text is copied directly and $n is replaced by the corresponding parameter.
However, when RULE is configued as the following way (although it's wrong)
RULE:[1:$1$2](.*)
Then run command
hadoop org.apache.hadoop.security.HadoopKerberosName testprinc@TESTREALM.COM
It will throw ArrayIndexOutOfBoundsException instead of BadFormatString exception.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org