[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to