Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4775

PageParameters#mergeWith may loose values of the 'other' PP

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.8, 6.0.0
    • 6.1.0
    • wicket
    • None

    Description

      The code at org.apache.wicket.request.mapper.parameter.PageParameters#mergeWith() looks like:

      for (NamedPair curNamed : other.getAllNamed())
      set(curNamed.getKey(), curNamed.getValue());

      may loose some values if 'other' has a named parameter with several values.With the current code only the last name/value pair is preserved.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            papegaaij Emond Papegaaij
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment