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 [email protected]
It will throw ArrayIndexOutOfBoundsException instead of BadFormatString
exception.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]