[ 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 testpr...@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-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org