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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.2
    • 1.3.3
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: