zuotingbing created SOLR-8493:
---------------------------------
Summary: SolrHadoopAuthenticationFilter.getZkChroot:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Key: SOLR-8493
URL: https://issues.apache.org/jira/browse/SOLR-8493
Project: Solr
Issue Type: Bug
Components: clients - java
Affects Versions: 4.10.3
Reporter: zuotingbing
[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";
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]