Commit 380905b5 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed navigation to node details. ENT-198

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9285 b35dd754-fafc-0310-a699-88a17e54d16e
parent 777e977e
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
<%@ page import="java.util.Collection" %> <%@ page import="java.util.Collection" %>
<%@ page import="java.util.Date" %> <%@ page import="java.util.Date" %>
<%@ page import="java.util.Map" %> <%@ page import="java.util.Map" %>
<%@ page import="org.jivesoftware.util.Base64" %>
<html> <html>
<head> <head>
...@@ -248,22 +249,22 @@ ...@@ -248,22 +249,22 @@
<tbody> <tbody>
<% if (!clusterNodesInfo.isEmpty()) { <% if (!clusterNodesInfo.isEmpty()) {
for (ClusterNodeInfo nodeInfo : clusterNodesInfo) { for (ClusterNodeInfo nodeInfo : clusterNodesInfo) {
boolean isLocalMember = boolean isLocalMember =
XMPPServer.getInstance().getNodeID().equals(nodeInfo.getNodeID()); XMPPServer.getInstance().getNodeID().equals(nodeInfo.getNodeID());
int nodeID = nodeInfo.getNodeID().hashCode(); String nodeID = Base64.encodeBytes(nodeInfo.getNodeID().toByteArray(), Base64.URL_SAFE);
Map<String, Object> nodeStats = null; Map<String, Object> nodeStats = null;
for (Object stat : statistics) { for (Object stat : statistics) {
Map<String, Object> statsMap = (Map<String, Object>) stat; Map<String, Object> statsMap = (Map<String, Object>) stat;
if (statsMap == null) { if (statsMap == null) {
continue; continue;
} }
if (Arrays.equals((byte[]) statsMap.get(GetBasicStatistics.NODE), if (Arrays.equals((byte[]) statsMap.get(GetBasicStatistics.NODE),
nodeInfo.getNodeID().toByteArray())) { nodeInfo.getNodeID().toByteArray())) {
nodeStats = statsMap; nodeStats = statsMap;
break; break;
} }
} }
%> %>
<tr class="<%= (isLocalMember ? "local" : "") %>" valign="middle"> <tr class="<%= (isLocalMember ? "local" : "") %>" valign="middle">
<td align="center" width="1%"> <td align="center" width="1%">
<a href="plugins/enterprise/system-clustering-node.jsp?UID=<%= nodeID %>" <a href="plugins/enterprise/system-clustering-node.jsp?UID=<%= nodeID %>"
......
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