diff --git a/Exareme-Docker/src/exareme/exareme-master/src/main/java/madgik/exareme/master/gateway/async/handler/HBP/ConsulNodesPathologiesAndDatasetsInfo.java b/Exareme-Docker/src/exareme/exareme-master/src/main/java/madgik/exareme/master/gateway/async/handler/HBP/ConsulNodesPathologiesAndDatasetsInfo.java index 62ad422c..056d6241 100644 --- a/Exareme-Docker/src/exareme/exareme-master/src/main/java/madgik/exareme/master/gateway/async/handler/HBP/ConsulNodesPathologiesAndDatasetsInfo.java +++ b/Exareme-Docker/src/exareme/exareme-master/src/main/java/madgik/exareme/master/gateway/async/handler/HBP/ConsulNodesPathologiesAndDatasetsInfo.java @@ -151,7 +151,9 @@ public static class NodeData { // Get the available pathologies of the node from CONSUL. Gson gson = new Gson(); try { - String nodePathologiesPathsJson = searchConsulKeys(getConsulDataPath() + "/" + nodeName); + // IMPORTANT The "/" at the end of the nodeName is needed, otherwise the query will respond with + // all the nodes that have the prefix of "nodeName" + String nodePathologiesPathsJson = searchConsulKeys(getConsulDataPath() + "/" + nodeName + "/"); if (nodePathologiesPathsJson == null) { return; }