Commit 9d5069ac authored by dbh's avatar dbh Committed by akrherz

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 4ff54c1f
......@@ -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