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

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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            varun Varun Thacker

            Dates

              Created:
              Updated:

              Slack

                Issue deployment