From 8e38422d400bcfc49574a5b048da1098bffa841c Mon Sep 17 00:00:00 2001 From: Luca Roffia Date: Fri, 25 Jun 2021 10:29:49 +0200 Subject: [PATCH] Fixed default graph issue #68 --- .../processing/subscriptions/Subscriptions.java | 6 +++++- engine/src/main/resources/log4j2.xml | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/engine/src/main/java/it/unibo/arces/wot/sepa/engine/processing/subscriptions/Subscriptions.java b/engine/src/main/java/it/unibo/arces/wot/sepa/engine/processing/subscriptions/Subscriptions.java index d16f6645..ba376fa5 100644 --- a/engine/src/main/java/it/unibo/arces/wot/sepa/engine/processing/subscriptions/Subscriptions.java +++ b/engine/src/main/java/it/unibo/arces/wot/sepa/engine/processing/subscriptions/Subscriptions.java @@ -94,7 +94,11 @@ public synchronized static Collection filterOnGraphs(InternalUpdateRequest // All graphs: NO FILTER // TODO: default graph? - if (context.contains("*") || target.contains("*")) { + if (context.isEmpty() && target.isEmpty()) { + // DEFAULT GRAPHs + ret.add(requests.get(sub)); + } + else if (context.contains("*") || target.contains("*")) { ret.add(requests.get(sub)); } else for (String graph : target) { diff --git a/engine/src/main/resources/log4j2.xml b/engine/src/main/resources/log4j2.xml index 49b9d821..b5fb1780 100644 --- a/engine/src/main/resources/log4j2.xml +++ b/engine/src/main/resources/log4j2.xml @@ -3,13 +3,13 @@ - - + + - + - - + + @@ -23,7 +23,7 @@ - +