The www-authenticate header breaks JettyClientHttpConnector #34112
Labels
for: external-project
Needs a fix in external project
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
Environment
Old surroundings where it operated
Context
We have migrated from a Spring Boot 2.7.18 environment to Spring Boot 3.3.4 and we have detected that when using a WebClient with a JettyClientHttpConnector with its respective HttpClient, in case the call comes with a www-authenticate header, it gets stuck making calls infinitely and we never get it to respond correctly.
All this worked perfectly in the Spring Boot 2 version, where upon receiving the call, it responded without any problem.
We have tried to define the connector in the most basic way possible, but it always breaks, in case of receiving that header.
Examples and Code
We have done the test, simply by telling
WebClient
that the connector we are going to use isJettyClientHttpConnector
.If you try to make a call to any endpoint, which returns the www-authenticate header, you can see that it gets stuck and after passing the timeout, it throws this error:
Also, it seems to retry the call until finally the error appears, but the call gets hung up and never resolves.
However, with exactly the same code in Spring Boot 2, it resolves the call without a problem.
Thanks for the support! :)
The text was updated successfully, but these errors were encountered: