Inconsistent inclusion of base URL in WebClient
URI template attribute since Spring WebFlux 6.1.2
#31882
Milestone
WebClient
URI template attribute since Spring WebFlux 6.1.2
#31882
Consider this code:
With Spring Framework 6.1.1 this prints the following:
However, with Spring Framework 6.1.2 the output is this:
So, when using varargs the
baseUrl
is now included in the URI template, but when using aMap
it isn't.It seems the change to include the base URL in the URI template was made via #30027. I personally have doubts about whether the base URL should be included in the URI template. I'd like to have access to the URI template as it was passed to the client and I'd prefer the base URL not to be included, because it clutters our distributed tracing output. The base URL could be passed via a separate attribute maybe?
But if this change to suddenly include the base URL in the URI template attribute is indeed intentional, it seems it was at least not consistently implemented.
The text was updated successfully, but these errors were encountered: