Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12710

ContentStreamLoader and SolrInputDocument/SolrInputField should not allow null key's or values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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

      doc = new SolrInputDocument(null , null);
      assertNull(d);

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              varun Varun Thacker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: