Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2052

Conversations are destroyed too early when destroying a session

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.2.14.Final
    • Fix Version/s: 3.0.0.Alpha14, 2.3.2.Final
    • Component/s: None
    • Labels:
      None
    • Environment:

      Wildfly 9.0.1.Final

      Description

      When the session is destroyed (e.g. due to logging out), then its conversations are destroyed right away, in the session.invalidate(); call. According to the spec, this is wrong.
      CDI 1.2 spec 6.7.4. Conversation context lifecycle:

      When the HTTP servlet session is invalidated, all long-running conversation contexts created during the current session are destroyed, after the servlet service() method completes.

      (CDI 2 spec early draft makes the same statement in 19.3.4 Conversation context lifecycle in Java EE.)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                vsevolodgolovanov Vsevolod Golovanov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: