- Notifications
You must be signed in to change notification settings - Fork 25.5k
Closed
Labels
:Core/Infra/REST APIREST infrastructure and utilitiesREST infrastructure and utilitiesbug"" muted="" aria-describedby="MDU6TGFiZWwyMzE3Mw==-tooltip :R5b96b:">>bug
Description
Elasticsearch version (bin/elasticsearch --version
): 7.8.0-SNAPSHOT
Plugins installed: []
JVM version (java -version
): bundled JDK
OS version (uname -a
if on a Unix-like system): Windows 10
Description of the problem including expected versus actual behavior:
The Voting Config Exclusions APIs (POST and DELETE) both return \n
as the response with a content-type header of application/json
and a content-length of 1. This response isn't valid JSON, and may require special handling in a language client, for example,
Steps to reproduce:
- Make a POST to
/_cluster/voting_config_exclusions?node_names=node1%2Cnode2
or a DELETE request to/_cluster/voting_config_exclusions?wait_for_removal=true
- Observe a response similar to
HTTP/1.1 200 OK content-type: application/json; charset=UTF-8 content-length: 1
Possible solution(s)
- Return no response body
or
- Return an empty JSON object
{}
Metadata
Metadata
Assignees
Labels
:Core/Infra/REST APIREST infrastructure and utilitiesREST infrastructure and utilitiesbug"" muted="" aria-describedby="MDU6TGFiZWwyMzE3Mw==-tooltip :Ra5pmb:">>bug