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

ThreadContext should be detached before each subscribed page gets notified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0.0-beta3
    • 6.0.0
    • wicket-atmosphere
    • None

    Description

      Since the event subscriptions may cross different sessions, before entering request cycles of notified page, the ThreadContext should be detached except application instance.

      In EventBus#post(Object event), ThreadContext.detach() should be placed inside the for-loop block of atmosphere resources,
      otherwise Session().get() may return previous page's session.

      Attachments

        Activity

          People

            papegaaij Emond Papegaaij
            linekin Sean Lin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: