Skip to content
Snippets Groups Projects
Commit 3dba7335 authored by uhensler's avatar uhensler
Browse files

OO-3246: Avoid unnecessary warning from Shibboleth module while startup

parent 2b8bac0d
No related merge requests found
...@@ -174,9 +174,11 @@ public class ShibbolethModule extends AbstractSpringModule implements ConfigOnOf ...@@ -174,9 +174,11 @@ public class ShibbolethModule extends AbstractSpringModule implements ConfigOnOf
List<String> keyStrings = Arrays.asList(raw.split(AUTHOR_CONTAINS_SPLIT_VALUE)); List<String> keyStrings = Arrays.asList(raw.split(AUTHOR_CONTAINS_SPLIT_VALUE));
for (String keyString : keyStrings) { for (String keyString : keyStrings) {
try { try {
keys.add(IdentifierKey.valueOf(keyString)); if (StringHelper.containsNonWhitespace(keyString)) {
keys.add(IdentifierKey.valueOf(keyString));
}
} catch (Exception e) { } 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; return keys;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment