From a593351568fd51f9745497cffcd8b76824ebb7ac Mon Sep 17 00:00:00 2001 From: Hugo Renard Date: Wed, 21 Sep 2022 10:17:25 +0200 Subject: [PATCH] add defaults in case of missing attributes --- src/main/java/sh/libre/scim/core/ScimDispatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/sh/libre/scim/core/ScimDispatcher.java b/src/main/java/sh/libre/scim/core/ScimDispatcher.java index ee4d1f2bff..f76102cafa 100644 --- a/src/main/java/sh/libre/scim/core/ScimDispatcher.java +++ b/src/main/java/sh/libre/scim/core/ScimDispatcher.java @@ -21,8 +21,8 @@ public class ScimDispatcher { public void run(String scope, Consumer f) { session.getContext().getRealm().getComponentsStream() .filter((m) -> { - return ScimStorageProviderFactory.ID.equals(m.getProviderId()) && m.get("enabled").equals("true") - && m.get("propagation-" + scope).equals("true"); + return ScimStorageProviderFactory.ID.equals(m.getProviderId()) && m.get("enabled", true) + && m.get("propagation-" + scope, false); }) .forEach(m -> runOne(m, f)); }