Varun Thacker created SOLR-12710:
------------------------------------

             Summary: ContentStreamLoader and SolrInputDocument/SolrInputField 
should not allow null key's or values
                 Key: SOLR-12710
                 URL: https://issues.apache.org/jira/browse/SOLR-12710
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Varun Thacker


Today we can create a SolrInputDocument with null keys or values. We should 
validate them and throw IllegalArgumentExceptions 

We should also validate ContentStreamLoader so that no null values creep in 
there .

 

Today this test would fail because SolrInputDocument is not null(?) and also 
allows adding null / keys and values
{code:java}
doc = new SolrInputDocument(null , null);
assertNull(d);{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to