Skip to content

Conversation

FBibonne
Copy link
Contributor

@FBibonne FBibonne commented Oct 17, 2025

Use List instead of MultiValueMap in HierarchicalUriComponents to record query params

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 17, 2025
…ated spring-projects#34788

- Use List<QueryParam> instead of MultiValueMap in  HierarchicalUriComponents to record query params

Signed-off-by: Fabrice Bibonne <[email protected]>
@FBibonne FBibonne force-pushed the gh-34788-uriComponentWithDulpicatedKeys branch from 9c5a475 to 742fedd Compare October 17, 2025 14:43
@FBibonne
Copy link
Contributor Author

Solves #34788

@FBibonne FBibonne marked this pull request as draft October 17, 2025 14:44
@FBibonne FBibonne changed the title feat (Uri components builder expanded) query params key can be duplicated #34788 - Use List<QueryParam> instead of MultiValueMap in HierarchicalUriComponents to record query params #34788 - HierarchicalUriComponents can handle repeated params in a query Oct 17, 2025
- fix MockHttpServletRequestBuilderTests#queryParameterWithoutValues

Signed-off-by: Fabrice Bibonne <[email protected]>
- order of params change in result expressions in a few tests : expected results have to be changed

Signed-off-by: Fabrice Bibonne <[email protected]>
@FBibonne FBibonne marked this pull request as ready for review October 18, 2025 04:55
@FBibonne
Copy link
Contributor Author

While working on the PR I had to fix some tests, not directly related to URI compononents, like RequestLoggingFilterTests::queryStringIncluded
So the changes in URI components, as they modify the order of query params, can fail tests which assert an URI : it is true inside the spring framework tests but this can also be true outside : this may be a breaking change.

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

Labels

status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants