-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[REST API] Requests with unconsumed bodies should be rejected. #65242
Copy link
Copy link
Closed
Labels
:Core/Infra/REST APIREST infrastructure and utilitiesREST infrastructure and utilities>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra team
Description
Summary
This is a regression of #37504.
Environment
Kibana: 7.x (7.11)
Elasticsearch: 7.x (7.11)
How To Test
Run the following command in console.
PUT test/_doc/1
{}
DELETE /test
{
"query" : {
"term" : {
"field" : "value"
}
}
}
The above is no longer rejected.
Another example (which found this regression):
POST /latency/_forcemerge
{
"only_expunge_deletes": true,
"max_num_segments": 1
}
Which since #37504 should not be allowed. (related: #30792)
Screenie
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Core/Infra/REST APIREST infrastructure and utilitiesREST infrastructure and utilities>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra team
Type
Fields
Give feedbackNo fields configured for issues without a type.