From 3dba73355b840afc9a75f07ff40467856a796115 Mon Sep 17 00:00:00 2001 From: uhensler <none@none> Date: Wed, 17 Jan 2018 14:52:18 +0100 Subject: [PATCH] OO-3246: Avoid unnecessary warning from Shibboleth module while startup --- src/main/java/org/olat/shibboleth/ShibbolethModule.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/olat/shibboleth/ShibbolethModule.java b/src/main/java/org/olat/shibboleth/ShibbolethModule.java index 8ac14536c0b..5a8872dea07 100644 --- a/src/main/java/org/olat/shibboleth/ShibbolethModule.java +++ b/src/main/java/org/olat/shibboleth/ShibbolethModule.java @@ -174,9 +174,11 @@ public class ShibbolethModule extends AbstractSpringModule implements ConfigOnOf List<String> keyStrings = Arrays.asList(raw.split(AUTHOR_CONTAINS_SPLIT_VALUE)); for (String keyString : keyStrings) { try { - keys.add(IdentifierKey.valueOf(keyString)); + if (StringHelper.containsNonWhitespace(keyString)) { + keys.add(IdentifierKey.valueOf(keyString)); + } } catch (Exception e) { - log.warn("The value '" + keyString + "' for the property 'shib.ac.auto.identifiers' is not valid."); + log.warn("The value '" + keyString + "' for the property 'method.auto.shib.identifiers' is not valid."); } } return keys; -- GitLab