-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Core/Infra/REST APIREST infrastructure and utilitiesREST infrastructure and utilities>enhancementhigh hanging fruit
Description
Today, some Elasticsearch REST endpoints (e.g., update index settings API) attempt to determine the content type (e.g., JSON vs. YAML) of the request body with a rudimentary detection mechanism. This mechanism breaks down on YAML bodies that contain braces because the content is inappropriately detected as JSON. Instead, this mechanism should not be used, Elasticsearch should default to JSON for all request bodies, and possibly obey the Content-Type header for allowing YAML.
Relates #19366
clintongormley, dakrone, anti-social, popravich and drewr
Metadata
Metadata
Labels
:Core/Infra/REST APIREST infrastructure and utilitiesREST infrastructure and utilities>enhancementhigh hanging fruit