lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Risden (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (SOLR-6676) Return 500 if bad json data is posted to Solr?
Date Thu, 29 Sep 2016 21:43:20 GMT

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

Kevin Risden closed SOLR-6676.
------------------------------
    Resolution: Cannot Reproduce
      Assignee: Kevin Risden

> Return 500 if bad json data is posted to Solr?
> ----------------------------------------------
>
>                 Key: SOLR-6676
>                 URL: https://issues.apache.org/jira/browse/SOLR-6676
>             Project: Solr
>          Issue Type: Bug
>          Components: update
>    Affects Versions: 4.7.2
>            Reporter: liuqibj
>            Assignee: Kevin Risden
>
> When posting  invalid json data to Solr and we often get 400 response code but some cases
return 500 if bad json data is posted. The call stack looks like this(see below). There are
multiple reasons if Solr return 500 errors.  Is there any way to distinguish whether the 500
errors is due to bad json data or other reasons?
> at org.apache.noggit.JSONParser.err
> at org.apache.noggit.JSONParser.next
> at org.apache.noggit.JSONParser.nextEvent
> at org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.processUpdate
> at org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.load
> at org.apache.solr.handler.loader.JsonLoader.load



--
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


Mime
View raw message