Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16936

@PathVariable's javadoc wrongly states it supports MultiValueMaps

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.17, 5.0.6
    • Fix Version/s: 4.3.18, 5.0.7, 5.1 RC1
    • Component/s: Web
    • Labels:

      Description

      @PathVariable's javadoc states that it supports MultiValueMap parameters (introduced by SPR-12347), 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.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                mureinik Allon Mureinik
                Last updater:
                Stéphane Nicoll
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 week, 3 days ago