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 @@ ...@@ -169,8 +169,7 @@
<td width="1%" nowrap> <td width="1%" nowrap>
<% <%
LocalClientSession localSession = (LocalClientSession) sess; if (sess instanceof LocalClientSession && ((LocalClientSession)sess).isDetached()) { %>
if (localSession != null && localSession.isDetached()) { %>
<fmt:message key="session.details.sm-detached"/> <fmt:message key="session.details.sm-detached"/>
<% } else { <% } else {
try { %> try { %>
...@@ -179,6 +178,7 @@ ...@@ -179,6 +178,7 @@
Invalid session/connection Invalid session/connection
<% } <% }
} %> } %>
</td> </td>
<td width="1%" nowrap align="center" style="border-right:1px #ccc solid;"> <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