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,
https://github.com/elastic/elasticsearch-net/pull/4738/files#diff-b2b266a90c4f392e9d643a396ef6a2d2R28-R38
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)
or
- Return an empty JSON object
{}
Elasticsearch version (
bin/elasticsearch --version): 7.8.0-SNAPSHOTPlugins installed: []
JVM version (
java -version): bundled JDKOS version (
uname -aif on a Unix-like system): Windows 10Description of the problem including expected versus actual behavior:
The Voting Config Exclusions APIs (POST and DELETE) both return
\nas the response with a content-type header ofapplication/jsonand a content-length of 1. This response isn't valid JSON, and may require special handling in a language client, for example,https://github.com/elastic/elasticsearch-net/pull/4738/files#diff-b2b266a90c4f392e9d643a396ef6a2d2R28-R38
Steps to reproduce:
/_cluster/voting_config_exclusions?node_names=node1%2Cnode2or a DELETE request to/_cluster/voting_config_exclusions?wait_for_removal=truePossible solution(s)
or
{}