Skip to content

[REST API] Requests with unconsumed bodies should be rejected.  #65242

@cuff-links

Description

@cuff-links

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

http://g.recordit.co/bUGDVNyJue.gif

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions