Closed
Description
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:
- fail-out explicitly, rather than returning garbage
- properly concatenate the two lists of params
- replace the old params with the new ones if provided
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