New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UriComponentsBuilder injected into a WebFlux controller method argument uses the full URI [SPR-16813] #21353

Closed
spring-issuemaster opened this Issue May 11, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

spring-issuemaster commented May 11, 2018

Rossen Stoyanchev opened SPR-16813 and commented

While making changes for #21209 I noticed that ServerWebExchangeArgumentResolver prepares a UriComponentsBuilder based on the full URI including full path and query params where it should be relative to the root of the web application, i.e. using scheme, host, and port only.

By comparison on the Spring MVC side ServletUriComponentsBuilder.fromServletMapping(request) is used.


Affects: 5.0.6

Issue Links:

  • #21209 Centralize handling of "Forwarded" headers to ForwardedHeaderFilter

Referenced from: commits fd36af6, 7f954eb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment