Skip to content
New issue

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

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

Already on GitHub? # to your account

@PathVariable's javadoc wrongly states it supports MultiValueMaps [SPR-16936] #21475

Closed
spring-projects-issues opened this issue Jun 12, 2018 · 2 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: backported An issue that has been backported to maintenance branches type: task A general task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jun 12, 2018

Allon Mureinik opened SPR-16936 and commented

@PathVariable's javadoc states that it supports MultiValueMap parameters (introduced by #16952), but by reading through the code, that does not seem to be the case (compare PathVariableMapMethodArgumentResolver to RequestParamMapMethodArgumentResolver).

Moreover, parsing MultipleValueMap is done according to the ";", and placing such a character in a path (e.g., consider something like "/app/{param}/show" would just break the path.

The documentation should be amended to remove the mention of MultiValueMap.

 


Affects: 4.3.17, 5.0.6

Issue Links:

Referenced from: pull request #1854, and commits a9dd927, 0b64bcd, 2573a54, 224fcc1

Backported to: 4.3.18

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Good catch! Rolled into master now, and about to be backported to 5.0.7 and 4.3.18.

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

At the opportunity, I've also removed some outdated environment constraints (dating back to Servlet MVC vs Portlet MVC) from our annotation javadoc there.

@spring-projects-issues spring-projects-issues added status: backported An issue that has been backported to maintenance branches in: web Issues in web modules (web, webmvc, webflux, websocket) type: task A general task labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.0.7 milestone Jan 11, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: backported An issue that has been backported to maintenance branches type: task A general task
Projects
None yet
Development

No branches or pull requests

2 participants