Skip to content

[8.6] Fix Chunked APIs sending incorrect responses to HEAD requests (#92042)#92049

Merged
elasticsearchmachine merged 3 commits intoelastic:8.6from
original-brownbear:backport/8.6/pr-92042
Jan 3, 2023
Merged

[8.6] Fix Chunked APIs sending incorrect responses to HEAD requests (#92042)#92049
elasticsearchmachine merged 3 commits intoelastic:8.6from
original-brownbear:backport/8.6/pr-92042

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

Backports the following commits to 8.6:

Response bodies must always be empty for HEAD requests.
Since the request encoder does not know that its dealing with a response
to a HEAD request we have to indicate this fact to it.
Also, needed to adjust the test http client to use the http-codec so it is able
to correlate what responses are meant for HEAD requests and will correctly read
responses for HEAD requests.
Without this change the added test reproduces the extra bytes and fails with an assert
about more than one response received.

closes #92032
@original-brownbear original-brownbear added :Distributed/Network Http and internode communication implementations >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Distributed Meta label for distributed team. labels Dec 1, 2022
@elasticsearchmachine elasticsearchmachine merged commit 09f141b into elastic:8.6 Jan 3, 2023
@original-brownbear original-brownbear deleted the backport/8.6/pr-92042 branch January 3, 2023 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team. v8.6.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants