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

AjaxSelfUpdatingTimerBehavior on unversioned page keeps triggering StalePageException when multiple tabs open

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.8, 6.0.0
    • None
    • wicket
    • None

    Description

      When an AjaxSelfUpdatingTimerBehavior is used on an unversioned page, and the user opens the same page in a second tab, both pages will keep triggering StalePageExceptions. The following sequence of events occurs:
      Tab 1 opens page (render count = 1)
      Tab 2 opens page (render count = 2)
      Tab 1 triggers Ajax update for rc=1, which triggers a StalePageException
      Tab 1 gets redirected to a fresh page (render count = 3)
      Tab 2 triggers Ajax update for rc=2, which triggers a StalePageException
      Tab 2 gets redirected to a fresh page (render count = 4)
      Tab 1 triggers Ajax update, etc, etc.

      The attached quickstart demonstrates this problem. Open the home page, open the same url (with ?0) in a second tab. This will kill the refresher on the first tab. Now reload the first tab and both pages will keep refresh in an endless loop.

      Attachments

        1. quickstart.tar.gz
          20 kB
          Emond Papegaaij

        Issue Links

          Activity

            People

              Unassigned Unassigned
              papegaaij Emond Papegaaij
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: