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

Yonik Seeley resolved SOLR-2736.
--------------------------------

    Resolution: Duplicate

Duplicate of SOLR-2714
Looks like we should fix this since you're the second person to rely on this 
behavior!

> 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
>              Labels: json, update
>
> 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