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

SPR-16936 Fix PathVariable javadoc #1854

Merged
merged 1 commit into from
Jun 12, 2018

Conversation

mureinik
Copy link
Contributor

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

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

This patch fixes PathVariable's javadoc by removing the mention of MultiValueMap.

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

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

This patch fixes PathVariable's javadoc by removing the mention of
MultiValueMap.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants