Solr
  1. Solr
  2. SOLR-7418

MLTQParser throws NPE when a wrong doc id is sent

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0, 5.1
    • Fix Version/s: 5.2
    • Component/s: query parsers
    • Labels:
      None

      Description

      MLTQParser throws an NPE when a non-existent document id is sent in the request. It should instead either return 0 results or throw a Solr exception with the correct error message.

      1. SOLR-7418.patch
        9 kB
        Anshum Gupta

        Activity

        Hide
        Anshum Gupta added a comment -

        Patch and a test.

        Show
        Anshum Gupta added a comment - Patch and a test.
        Hide
        ASF subversion and git services added a comment -

        Commit 1675230 from Anshum Gupta in branch 'dev/trunk'
        [ https://svn.apache.org/r1675230 ]

        SOLR-7418: Check and raise a SolrException instead of an NPE when an invalid doc id is sent to the MLTQParser in Cloud mode

        Show
        ASF subversion and git services added a comment - Commit 1675230 from Anshum Gupta in branch 'dev/trunk' [ https://svn.apache.org/r1675230 ] SOLR-7418 : Check and raise a SolrException instead of an NPE when an invalid doc id is sent to the MLTQParser in Cloud mode
        Hide
        ASF subversion and git services added a comment -

        Commit 1675231 from Anshum Gupta in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1675231 ]

        SOLR-7418: Check and raise a SolrException instead of an NPE when an invalid doc id is sent to the MLTQParser in Cloud mode (merge from trunk)

        Show
        ASF subversion and git services added a comment - Commit 1675231 from Anshum Gupta in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1675231 ] SOLR-7418 : Check and raise a SolrException instead of an NPE when an invalid doc id is sent to the MLTQParser in Cloud mode (merge from trunk)
        Hide
        Anshum Gupta added a comment -

        Bulk close for 5.2.0.

        Show
        Anshum Gupta added a comment - Bulk close for 5.2.0.

          People

          • Assignee:
            Anshum Gupta
            Reporter:
            Anshum Gupta
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development