Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 3.1
-
Fix Version/s: None
-
Component/s: Bridge
-
Labels:None
-
Environment:ICEfaces 2 Auction AuctionMonitor MyFaces Mojarra
-
Assignee Priority:P1
Description
In testing the Auction example with MyFaces, I noticed that when the session expired, I was receiving the proper response from the push requests:
<?xml version='1.0' encoding='UTF-8'?>
<partial-response>
<error>
<error-name>class org.icefaces.application.SessionExpiredException</error-name>
<error-message><![CDATA[Session has expired]]></error-message>
</error>
</partial-response>
but it was not popping up a notification on the client nor was it shutting down push. Push would keep running and returning the SessionExpiredException over and over.
I set some breakpoints at various points in the bridge.js code to see where it might be breaking down but it doesn't appear that the following function is being called at all:
function filterICEfacesEvents(f) {...
which suggests that the callback is not being called for some reason:
jsf.ajax.addOnError(filterICEfacesEvents(submitErrorBroadcaster(networkErrorListeners, serverErrorListeners)));
<?xml version='1.0' encoding='UTF-8'?>
<partial-response>
<error>
<error-name>class org.icefaces.application.SessionExpiredException</error-name>
<error-message><![CDATA[Session has expired]]></error-message>
</error>
</partial-response>
but it was not popping up a notification on the client nor was it shutting down push. Push would keep running and returning the SessionExpiredException over and over.
I set some breakpoints at various points in the bridge.js code to see where it might be breaking down but it doesn't appear that the following function is being called at all:
function filterICEfacesEvents(f) {...
which suggests that the callback is not being called for some reason:
jsf.ajax.addOnError(filterICEfacesEvents(submitErrorBroadcaster(networkErrorListeners, serverErrorListeners)));
Issue Links
- depends on
-
ICE-7344 Session Expired responses received but not displayed.
- Closed
I tested 'auction' application with Myfaces with success. The "User session expired" popup showed correctly every time the session expired.
Just commenting on the description of this issue, the filerICEfaceEvents function in the bridge does not exist anymore in the trunk (and since 3.1 release) because we refactored the implementation in that area. Also, the use of org.icefaces.sessionExpiredRedirectURI parameter is valid only when using icefaces-compat.jar library.