hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dazhuang Su (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-14155) KerberosName.replaceParameters() may throw java.lang.ArrayIndexOutOfBoundsException
Date Wed, 08 Mar 2017 09:38:38 GMT

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

Dazhuang Su updated HADOOP-14155:
---------------------------------
    Status: Patch Available  (was: Open)

> 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


Mime
View raw message