HTTP 500 response to invalid dynamic_mappings syntax #51486
Labels
>bug
help wanted
adoptme
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Elasticsearch version: 7.5.2
Plugins installed: []
JVM version: (Elastic Cloud)
OS version: (Elastic Cloud)
Description of the problem including expected versus actual behavior:
Actual behavior: An (invalid) mappings update request, where
dynamic_mappings
is an object instead of an array, results in a http response with a 500 code.Expected behavior: A 400 (bad request) http response code.
Steps to reproduce:
my_index
The text was updated successfully, but these errors were encountered: