MvcUriComponentsBuilder
javadocs inaccurately reflects usage of forwarded headers
#34615
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: documentation
A documentation task
Milestone
In version 5.1.x, the
ServletUriComponentsBuilder
methods changed to remove the usage of forwarded headers:4da43de
; Centralize handling of "Forwarded" headers to ForwardedHeaderFilter [SPR-16668] #21209bb5c8ed
); Misleading JavaDoc in ServletUriComponentsBuilder [SPR-17317] #21850However, the method and class documentation in
MvcUriComponentsBuilder
was not updated and still indicates the forwarded headers are used. (see instances ofNote:
in the javadocs) YetMvcUriComponentsBuilder
internally usesServletUriComponentsBuilder
for URI components resolution:spring-framework/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java
Lines 560 to 564 in a0763d1
This affects 5.1.x -> 7.0.x.
Simple test:
Error:
The text was updated successfully, but these errors were encountered: