From 54657b4ea460795d23dfbcbb0766ea11205857ec Mon Sep 17 00:00:00 2001 From: Elena Mokeeva Date: Tue, 23 Jan 2024 11:07:03 +0100 Subject: [PATCH] Close #2200 - fix the exception text for wrong classification categoeries --- .../src/main/java/pro/taskana/TaskanaConfiguration.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/taskana-core/src/main/java/pro/taskana/TaskanaConfiguration.java b/lib/taskana-core/src/main/java/pro/taskana/TaskanaConfiguration.java index 321d1129c6..6943c34363 100644 --- a/lib/taskana-core/src/main/java/pro/taskana/TaskanaConfiguration.java +++ b/lib/taskana-core/src/main/java/pro/taskana/TaskanaConfiguration.java @@ -718,6 +718,8 @@ public static class Builder { private final String schemaName; private final boolean securityEnabled; + private String separator = DEFAULT_TASKANA_PROPERTY_SEPARATOR; + @TaskanaProperty("taskana.domains") private List domains = new ArrayList<>(); @@ -1037,6 +1039,7 @@ public Builder initTaskanaProperties(String propertiesFile, String separator) { LOGGER.debug( "Reading taskana configuration from {} with separator {}", propertiesFile, separator); properties = loadProperties(propertiesFile); + this.separator=separator; configureAnnotatedFields(separator, properties); addMasterDomain(); return this; @@ -1451,8 +1454,8 @@ private void validateConfiguration() { "Parameter classificationCategoriesByType (taskana.classification.categories.)" + " contains invalid Classification Types. " + "configured: %s " - + "detected: %s", - classificationTypes, classificationCategoriesByType.keySet())); + + "existing: %s", + classificationTypes, "["+String.join(separator,classificationCategoriesByType.keySet())+"]")); } if (!classificationCategoriesByType.keySet().containsAll(classificationTypes)) {