Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8493

SolrHadoopAuthenticationFilter.getZkChroot: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 4.10.3
    • None
    • clients - java
    • None

    Description

      [error info]
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1904)
      at org.apache.solr.servlet.SolrHadoopAuthenticationFilter.getZkChroot(SolrHadoopAuthenticationFilter.java:147)

      [source code]:
      SolrHadoopAuthenticationFilter.java

      private String getZkChroot()

      { String zkHost = System.getProperty("zkHost"); return zkHost != null? zkHost.substring(zkHost.indexOf("/"), zkHost.length()) : "/solr"; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            zuo.tingbing9 zuotingbing
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: