-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Remove content detection mechanism from REST endpoints #19388
Copy link
Copy link
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
Reactions are currently unavailable
Metadata
Metadata
Labels
:Core/Infra/REST APIREST infrastructure and utilitiesREST infrastructure and utilities>enhancementhigh hanging fruit
Type
Fields
Give feedbackNo fields configured for issues without a type.