Solr
  1. Solr
  2. SOLR-6229

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

      1. SOLR-6229.patch
        3 kB
        Tomás Fernández Löbbe

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1608680 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1608680 ]

        SOLR-6229: Make SuggestComponent return 400 instead of 500 for bad dictionary selected in request

        Show
        ASF subversion and git services added a comment - Commit 1608680 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1608680 ] SOLR-6229 : Make SuggestComponent return 400 instead of 500 for bad dictionary selected in request
        Hide
        ASF subversion and git services added a comment -

        Commit 1608681 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1608681 ]

        SOLR-6229: Make SuggestComponent return 400 instead of 500 for bad dictionary selected in request

        Show
        ASF subversion and git services added a comment - Commit 1608681 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1608681 ] SOLR-6229 : Make SuggestComponent return 400 instead of 500 for bad dictionary selected in request
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks Tomás!

        Show
        Shalin Shekhar Mangar added a comment - Thanks Tomás!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development