OpenSearch extension returns StringIndexOutOfBounds exception when input url 
has no query parameters
----------------------------------------------------------------------------------------------------

                 Key: ABDERA-286
                 URL: https://issues.apache.org/jira/browse/ABDERA-286
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 1.1.2
            Reporter: Jess Lacy
            Priority: Minor


When using the OpenSearchUrlRequestProcessor class (part of the OpenSearch 
extension) a StringIndexOutOfBounds exception is thrown.  The exception is 
thrown from the getMatchingUrlInfo method at:
     String targetSearchPath = 
this.stripSlashes(request.getTargetPath().substring(0, 
request.getTargetPath().indexOf("?")));

Since the input request target path has no "?" character, the substring is 
attempted on (0,-1) bounds.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to