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

AbstractBookmarkableMapper sets pageParams to null, might be invalid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      When adding query params like ?4-1.IFormSubmitListener-xyz to a wicket page expecting path params, AbstractBookmarkableMapper sets all pageParams to null, but this leads to weird behavior for path params.

      See quickstart at https://github.com/tkruse/pageparams

      When opening the page with
      http://localhost:8080/home/foo/bar
      Then Page content says "foo bar." as required.

      When opening the same page with
      http://localhost:8080/home/foo/bar?4-1.IFormSubmitListener-xyz
      Then Page content says "null null."

      This is an unlikely scenario to happen in general I guess, but still it feels like a bug to me. Not sure what other query params could trigger this.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tkruse Thibault Kruse
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: