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

HybridUrlCodingStrategy should throw a PageExpiredException if a RequestListenerInterface is targeted on a non-existent page-id/version

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0-final
    • 1.3.1
    • wicket
    • None

    Description

      let's assume MyPage.class is mounted on /page and at some point the user is on /page.1.3
      if a click on a Link on that page, which results in a relative url "?wicket:interface..." but is ultimately sent to "/page.1.3?wicket:interface...", is clicked after a session timeout,
      the request is silently redirected to "/page.0" and the link callback is not processed.

      fix:
      before creating a new instance of a HybridBookmarkableRequestTarget, HybridUrlCodingStrategy should check if a RequestListenerInterface is present on the last request and throw a PageExpiredException if this is the case.

      Attachments

        Activity

          People

            Unassigned Unassigned
            seitz Gerolf Seitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: