Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25512

May throw StringIndexOutOfBoundsException when construct illegal tablename error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.2.12, 1.4.13, 2.4.1
    • 3.0.0-alpha-1, 2.5.0
    • None
    • None

    Description

      When call Method:

      // code placeholder
      TableName.isLegalTableQualifierName(final byte[] qualifierName, int start, int end)
      

      We want to construct quelifier String to print pretty error message. So we call method: 

      // code placeholder
      Bytes.toString(final byte[] b, int off, int len)
      Bytes.toString(qualifierName, start, end)
      

      But the param is wrong, we shoud pass ${Length} instead of ${end index} to Bytes.toString third param.

      Attachments

        Issue Links

          Activity

            People

              zhengzhuobinzzb zhuobin zheng
              zhengzhuobinzzb zhuobin zheng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: