[ https://issues.apache.org/jira/browse/HBASE-25512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Stack resolved HBASE-25512. ----------------------------------- Fix Version/s: (was: 1.7.0) Hadoop Flags: Reviewed Resolution: Fixed Pushed to branch-2 and master. Thanks for the nice patch [~zhengzhuobinzzb]. The PR did not go back to branch-1. Open a sub-issue w/ a PR for branch-1 if you want the PR to go back there. Thanks. > May throw StringIndexOutOfBoundsException when construct illegal tablename > error > -------------------------------------------------------------------------------- > > Key: HBASE-25512 > URL: https://issues.apache.org/jira/browse/HBASE-25512 > Project: HBase > Issue Type: Bug > Affects Versions: 1.2.12, 1.4.13, 2.4.1 > Reporter: zhuobin zheng > Assignee: zhuobin zheng > Priority: Trivial > Fix For: 3.0.0-alpha-1, 2.5.0 > > > When call Method: > {code:java} > // code placeholder > TableName.isLegalTableQualifierName(final byte[] qualifierName, int start, > int end) > {code} > We want to construct quelifier String to print pretty error message. So we > call method: > {code:java} > // code placeholder > Bytes.toString(final byte[] b, int off, int len) > Bytes.toString(qualifierName, start, end) > {code} > But the param is wrong, we shoud pass *${Length}* instead of *${end index}* > to *Bytes.toString third param*. -- This message was sent by Atlassian Jira (v8.3.4#803005)