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

Make SuggestComponent return 400 instead of 500 for bad dictionary selected in request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.9, 6.0
    • 4.10, 6.0
    • None
    • None

    Description

      Right now, when a dictionary that doesn't exist is selected using "suggest.dictionary", or when no dictionary is selected and there is no default, the SuggestComponent throws an IllegalArgumentException, which then translate into a 500 - Service Error. This should be a 400.

      Attachments

        1. SOLR-6229.patch
          3 kB
          Tomas Eduardo Fernandez Lobbe

        Activity

          People

            shalin Shalin Shekhar Mangar
            tflobbe Tomas Eduardo Fernandez Lobbe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: