SolrJSON reports "invalid key" on valid keys when JSON list of docs has null 
values 
------------------------------------------------------------------------------------

                 Key: SOLR-2736
                 URL: https://issues.apache.org/jira/browse/SOLR-2736
             Project: Solr
          Issue Type: Bug
          Components: update
            Reporter: Neil Hooey


If you index Solr like this, and it works:

curl 'http://localhot:8983/solr/update/json?wt=json' -H 'Content-type: 
application/json' -d '[ { "id": "5", "media_type": "image", "namespace": "foo" 
} ]'

Then this will fail:

curl 'http://localhot:8983/solr/update/json?wt=json' -H 'Content-type: 
application/json' -d '[ { "id": "5", "media_type": "image", "description": 
null, "namespace": "foo" } ]'

But it will give a confusing error message:

SEVERE: org.apache.solr.common.SolrException: invalid key: namespace

There should be an error message that says "null value not allowed for key: 
'description'" or something else that's reasonable.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to