Commit 957541b4 authored by dbh's avatar dbh Committed by daryl herzmann

OF-1460, Session Row jspf has a Hazelcast related bug. It assumes that all...

OF-1460, Session Row jspf has a Hazelcast related bug. It assumes that all sessions are LocalClientSessions. But, in a multi-node hazelcast enabled openfire environment, (#997)

there may be remote (not local) sessions as well.  The bug is a cast of sess to LocalClientSession, but that isn't always appropriate. Session Details and Session Summary jspf pages use this jspf file
parent 8aa04ea1
......@@ -169,8 +169,7 @@
<td width="1%" nowrap>
<%
LocalClientSession localSession = (LocalClientSession) sess;
if (localSession != null && localSession.isDetached()) { %>
if (sess instanceof LocalClientSession && ((LocalClientSession)sess).isDetached()) { %>
<fmt:message key="session.details.sm-detached"/>
<% } else {
try { %>
......@@ -179,6 +178,7 @@
Invalid session/connection
<% }
} %>
</td>
<td width="1%" nowrap align="center" style="border-right:1px #ccc solid;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment