Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-348

Test if session context is active during invocation of HttpSessionListener.sessionDestroyed when session is being destroyed during shutdown/undeploy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0.Beta1
    • 1.1.0.SP2
    • None
    • None

      Since section 6.7.2 of the spec says "The
      session scope is active: ... when the container calls any HttpSessionListener", the TCK should also test if the scope is active during webapp undeploy and during server shutdown, as HttpSessionListeners ar called at that time also.

      I guess a simple HttpSessionListener that accesses the session context during sessionDestroyed() (and doesn't catch any exceptions) is enough to test this, since the test will fail if there are any problems during the test undeployment process.

              mkouba@redhat.com Martin Kouba
              marko.luksa@gmail.com Marko Luksa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: