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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.9, 6.0
    • Fix Version/s: 4.10, 6.0
    • Component/s: None
    • Labels:
      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
          Tomás Fernández Löbbe

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              tomasflobbe Tomás Fernández Löbbe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: