From 3c0bc144d33712d2392e37a553b7192ef4572735 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 18 Jan 2016 16:30:24 +0100 Subject: add virtual IDP configuration functionality to moa-id-configuration webGUI --- .../webgui/validation/task/impl/GeneralMOAIDConfigurationTask.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'id/moa-id-webgui') diff --git a/id/moa-id-webgui/src/main/java/at/gv/egovernment/moa/id/config/webgui/validation/task/impl/GeneralMOAIDConfigurationTask.java b/id/moa-id-webgui/src/main/java/at/gv/egovernment/moa/id/config/webgui/validation/task/impl/GeneralMOAIDConfigurationTask.java index 616d9f0f4..891295777 100644 --- a/id/moa-id-webgui/src/main/java/at/gv/egovernment/moa/id/config/webgui/validation/task/impl/GeneralMOAIDConfigurationTask.java +++ b/id/moa-id-webgui/src/main/java/at/gv/egovernment/moa/id/config/webgui/validation/task/impl/GeneralMOAIDConfigurationTask.java @@ -117,7 +117,7 @@ public class GeneralMOAIDConfigurationTask extends AbstractTaskValidator impleme if (MiscUtil.isNotEmpty(check)) { String[] preFixList = check.split(","); for (String el : preFixList) { - if (!ValidationHelper.validateURL(el)) { + if (!ValidationHelper.validateURL(el.trim())) { log.info("Public URL Prefix is not valid"); errors.add(new ValidationObjectIdentifier( MOAIDConfigurationConstants.GENERAL_PUBLICURLPREFIX, @@ -516,7 +516,7 @@ public class GeneralMOAIDConfigurationTask extends AbstractTaskValidator impleme String pubURLPrefix = input.get(KeyValueUtils.removePrefixFromKey(MOAIDConfigurationConstants.GENERAL_PUBLICURLPREFIX, getKeyPrefix())); String normalizedPubURLPrefix = KeyValueUtils.normalizeCSVValueString(pubURLPrefix); - String[] normalizedPubURLPrefixList = normalizedPubURLPrefix.split(","); + String[] normalizedPubURLPrefixList = normalizedPubURLPrefix.split(KeyValueUtils.CSV_DELIMITER); String modifiedPubURLPrefixCSV = null; for (String el : normalizedPubURLPrefixList) { @@ -529,7 +529,7 @@ public class GeneralMOAIDConfigurationTask extends AbstractTaskValidator impleme if (modifiedPubURLPrefixCSV == null) modifiedPubURLPrefixCSV = newPubURLPrefix; else - modifiedPubURLPrefixCSV += "," + newPubURLPrefix; + modifiedPubURLPrefixCSV += KeyValueUtils.CSV_DELIMITER + newPubURLPrefix; } -- cgit v1.2.3