@PathVariable's javadoc wrongly states it supports MultiValueMaps [SPR-16936] #21475
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
Allon Mureinik opened SPR-16936 and commented
@PathVariable
's javadoc states that it supportsMultiValueMap
parameters (introduced by #16952), but by reading through the code, that does not seem to be the case (comparePathVariableMapMethodArgumentResolver
toRequestParamMapMethodArgumentResolver
).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:
@PathVariable
,@RequestHeader
&@RequestParam
using Map<String, String>Referenced from: pull request #1854, and commits a9dd927, 0b64bcd, 2573a54, 224fcc1
Backported to: 4.3.18
The text was updated successfully, but these errors were encountered: