lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Hooey (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-2736) SolrJSON reports "invalid key" on valid keys when JSON list of docs has null values
Date Mon, 29 Aug 2011 19:03:40 GMT
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message