DeferredSessionStorageHandler causes "valueUnbound" to be invoked twice on
removed Page Flows
---------------------------------------------------------------------------------------------
Key: BEEHIVE-1095
URL: http://issues.apache.org/jira/browse/BEEHIVE-1095
Project: Beehive
Type: Bug
Components: NetUI
Versions: V1, 1.0.1
Reporter: Eddie O'Neil
The Page Flow class DeferredSessionStorageHandler class causes the
"valueUnbound" HttpSessionBindingListener associated with a PageFlowController
to be invoked twice when a JPF is removed from the session. This seems to
violate the contract on the PageFlowController class that has lifecycle methods
that should be invoked once. it also makes locking the current page flow
during onDestroy more complicated because it can be invoked from either the
NetUI framework or from the Servlet container.
To repro. run the PageFlowBeanContextController Page Flow with the URL:
http://localhost:8080/coreWeb/controls/pfbeancontext/begin.do
and then set a breakpoint in "PageFlowController.valueUnbound" and hit:
http://localhost:8080/coreWeb/index.jsp
The result is that the breakpoint is hit twice -- once from:
DeferredSessionStorageHandler::setAttribute line 107
and then again during:
DeferredSessionStorageHandler::applyChanges line 221
during HttpSession.setAttribute(...)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira