abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jess Lacy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ABDERA-286) OpenSearch extension returns StringIndexOutOfBounds exception when input url has no query parameters
Date Tue, 19 Jul 2011 23:08:57 GMT
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

        

Mime
View raw message