[
https://issues.apache.org/jira/browse/ABDERA-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068204#comment-13068204
]
ant elder commented on ABDERA-286:
----------------------------------
Thansk for the bug report Jess. Any chance of you providing a patch to fix this?
> 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