glassfish
  1. glassfish
  2. GLASSFISH-20828

HttpSessionBindingListener.valueUnbound() is always called right after valueBound() with a null HttpSessionBindingEvent.getValue()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: V3, 3.1.1, 3.1.2, 3.1.2.2
    • Fix Version/s: 4.1
    • Component/s: web_services
    • Labels:
      None

      Description

      Expected Behavior

      Client code that register itself as a HttpSessionBindingListener insider GlassFish v3.1.2.2 and v4 should not be signaled via valueUnbound() unless the object is really being unbound from a session.

      Actual Outcome

      Whenever I register a HttpSessionBindingListener insider GlassFish v3.1.2.2 and v4 the valueUnbound() method is called with HttpSessionBindingEvent.getValue() null immediately after valueBound() when I register an object.

      Steps to Reproduce

      1. Create your own filter and implementation of HttpSessionBindingListener
      2. Register an object and notice the sequence of callback as valueBound() with a valid HttpSessionBindingEvent.getValue() fallowed by valueUnbound() with a null HttpSessionBindingEvent.getValue()

      Conform the JavaDoc on HttpSessionBindingListener the valueUnbound() method:

      Notifies the object that it is being unbound from a session and identifies the session.

      Thus it would be wrong to have it called immediately after valueBound().

        Activity

        Hide
        pbors added a comment -

        Related to GLASSFISH-4373

        Show
        pbors added a comment - Related to GLASSFISH-4373
        Hide
        pbors added a comment -

        Not a GlassFish bug, sorry for the wrong heads up.

        For more details see this mailing list post.

        Show
        pbors added a comment - Not a GlassFish bug, sorry for the wrong heads up. For more details see this mailing list post.
        Hide
        Lukas Jungmann added a comment -

        per last comment

        Show
        Lukas Jungmann added a comment - per last comment

          People

          • Assignee:
            Lukas Jungmann
            Reporter:
            pbors
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: