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

Numeric FooPointField classes inconsistent with TrieFooFields on malformed input: throw NumberFormatException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.7, 7.0
    • None

    Description

      Trie based Numeic fields deal with bad input by wrapping NumberFormatExceptions in w/BAD_REQUEST SolrExceptions – PointFields are just allowing the NumberFormatExceptions to be thrown as is, which means they propagate up and are eventually treated as a SERVER_ERROR when responding to clients.

      This is not only inconsistent from an end user perspective – but also breaks how these errors are handled in SolrCloud when the requests have been forwarded/proxied.

      We should ensure that the FooPointField classes behave consistently with the TrieFooField classes on bad input (both when adding a document, or query creating a field query)

      Attachments

        1. SOLR-10833.patch
          0.8 kB
          Chris M. Hostetter
        2. SOLR-10833.patch
          15 kB
          Tomas Eduardo Fernandez Lobbe
        3. SOLR-10833.patch
          31 kB
          Tomas Eduardo Fernandez Lobbe
        4. SOLR-10833.patch
          40 kB
          Tomas Eduardo Fernandez Lobbe

        Issue Links

          Activity

            People

              tflobbe Tomas Eduardo Fernandez Lobbe
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: