Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
Attachments
Issue Links
- is duplicated by
-
SOLR-11018 Wrong status code in case of invalid requests
- Resolved
- relates to
-
SOLR-10830 Solr needs to enforce that _root_ field has the same fieldType as the uniqueKey field
- Resolved
-
SOLR-10860 in-place updates currently throw NumberFormatException instead of a Bad Request SolrException for bad input
- Resolved
-
SOLR-10807 Randomize PointFields in all tests unless explicit reason not to
- Closed