You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Vitaliy Zhovtyuk (JIRA)" <ji...@apache.org> on 2014/09/22 20:54:34 UTC

[jira] [Updated] (SOLR-6028) SOLR returns 500 error code for query /<,/

     [ https://issues.apache.org/jira/browse/SOLR-6028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitaliy Zhovtyuk updated SOLR-6028:
-----------------------------------
    Attachment: SOLR-6028.patch

Added catch and transformation to SolrException (BadRequest) that lead to HTTP 400. The thing looks not really nice - IllegalArgumentException on parse problems in org.apache.lucene.search.RegexpQuery, shouldn't it be custom runtime exception.

> SOLR returns 500 error code for query /<,/
> ------------------------------------------
>
>                 Key: SOLR-6028
>                 URL: https://issues.apache.org/jira/browse/SOLR-6028
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 4.7.1
>            Reporter: Kingston Duffie
>            Priority: Minor
>         Attachments: SOLR-6028.patch
>
>
> If you enter the following query string into the SOLR admin console to execute a query, you will get a 500 error:
> /<,/
> This is an invalid query -- in the sense that the field between the slashes is not a valid regex.  Nevertheless, I would have expected to get a 400 error rather than 500.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org