You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Dazhuang Su (JIRA)" <ji...@apache.org> on 2017/03/08 09:30:38 UTC

[jira] [Updated] (HADOOP-14155) KerberosName.replaceParameters() may throw java.lang.ArrayIndexOutOfBoundsException

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

Dazhuang Su updated HADOOP-14155:
---------------------------------
    Attachment: HADOOP-14155.patch

> 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
>         Attachments: HADOOP-14155.patch
>
>
> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org