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,16 +169,16 @@ ...@@ -169,16 +169,16 @@
<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 { %>
<%= sess.getHostAddress() %> <%= sess.getHostAddress() %>
<% } catch (java.net.UnknownHostException e) { %> <% } catch (java.net.UnknownHostException e) { %>
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