ForwardedHeaderFilter garbles query params during sendRedirect() [SPR-16506] #21049
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Timothy Aitken opened SPR-16506 and commented
The ForwardedHeaderFilter garbles the query-string provided to
sendRedirect()
. If both the original request and the provided location both contain a query, then the two are improperly concatenated (with a extra "?" between them) making the resulting location redirect invalid, eg:http://hostname:port/path?newqp=1?oldqp=2
The expected behavior should be one of:
I'm not sure which of these are preferable, but #3 seems most consistent with the behavior when this filter is removed.
Affects: 4.3.10
Referenced from: commits 6920a1f, 608ef46, ac495d7
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: