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

Allow preserving of the parsed PageParameters when re-creating an expired page

    XMLWordPrintableJSON

Details

    Description

      There is a bookmarkable page mounted, for example, to:
      /page/${entityId}

      This page contains StatelessForm.
      Submitting of form after session expire lead to following:

      org.apache.wicket.core.request.mapper.MountedMapper invokes AbstractBookmarkableMapper.processListener to obtain IRequestHandler to handle submitting of form.
      But there is cleaning of PageParameters within processListener on line 256 (Wicket 6.14) which cleaning "entityId" parameter as well and created page finally has no "enityId" and (in our case) redirects to 404.

      I see that this cleaning of page parameters was implemented due to Wicket-4594. But I think, just checking for pageId is unsufficient, because pageId might be not null, but actual page may be already expired and new instance should be created.

      Attachments

        1. wicket5539.zip
          22 kB
          Ilia Naryzhny

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              phantom Ilia Naryzhny
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: