Skip to content

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

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits fd36af6, 7f954eb

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions