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

Session. requestDetached() does not replicate dirty pages to session in some situations, breaking application clustering

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.3
    • Component/s: None
    • Labels:
      None

      Description

      In Session.java line 1406 there is a test for deciding whether to set the page as an attribute to the session. The test reads:
      if (page.isStateless())

      Page does not override isStateless, and the default implementation (in Component) will return true for most pages.
      That means pages are not re-added to the session after being changed and this in turn breaks clustering (the results are most vivid when using a non-sticky load balancer).

      The fix is to change line 1406 to:

      if (page.isPageStateless())

      Maybe this is a typing mistake in the original code?

        Attachments

          Activity

            People

            • Assignee:
              jcompagner Johan Compagner
              Reporter:
              jjviana Juliano Viana
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: