You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Munendra S N (Jira)" <ji...@apache.org> on 2019/08/19 18:25:00 UTC

[jira] [Commented] (SOLR-13704) Return Correct Error code in ExpandComponent for Error cases

    [ https://issues.apache.org/jira/browse/SOLR-13704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16910633#comment-16910633 ] 

Munendra S N commented on SOLR-13704:
-------------------------------------

 [^SOLR-13704.patch] 
Correct status code when
* expand field is not specified
* parsing expand query or expand filters fails
* invalid fieldtype is specified.

Some of the existing checks in expand assumes that expand is combination with collapsing which may not be the case.
Also, when expand.field is date field request fails with status 500

> Return Correct Error code in ExpandComponent for Error cases 
> -------------------------------------------------------------
>
>                 Key: SOLR-13704
>                 URL: https://issues.apache.org/jira/browse/SOLR-13704
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SearchComponents - other
>            Reporter: Munendra S N
>            Assignee: Munendra S N
>            Priority: Minor
>         Attachments: SOLR-13704.patch
>
>
> This is spin-off from SOLR-12393
> In some error cases, wrong error code is returned like
> * expand field is not specified
> * parsing expand query or expand filters fails
> In these cases, error code should 400 instead of 500



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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