Antonio Petrelli opened SPR-16650 and commented
ServletUriComponentsBuilder.fromContextPath, if the X-Forwarded-Prefix header is present, prepends the header value to the context path.
It should, instead, replace it, since this is what ForwardedHeaderFilter does.
In my case I see URLs in Spring Data Rest results are affected.
Workaround: use ForwardedHeaderFilter instead of relying on ServletUriComponentsBuilder.
Affects: 4.3.14
Issue Links:
Referenced from: commits 986d219, 240d6f5
Backported to: 4.3.15
Antonio Petrelli opened SPR-16650 and commented
ServletUriComponentsBuilder.fromContextPath, if the X-Forwarded-Prefix header is present, prepends the header value to the context path.It should, instead, replace it, since this is what ForwardedHeaderFilter does.
In my case I see URLs in Spring Data Rest results are affected.
Workaround: use
ForwardedHeaderFilterinstead of relying onServletUriComponentsBuilder.Affects: 4.3.14
Issue Links:
Referenced from: commits 986d219, 240d6f5
Backported to: 4.3.15