From 0755cb6996ec4c57717506d945f2142739be522b Mon Sep 17 00:00:00 2001 From: gerbermichi Date: Tue, 16 Dec 2014 18:54:48 +0100 Subject: [PATCH] Bugfix: Can not read keycloak-server.json if the path contains a space https://issues.jboss.org/browse/KEYCLOAK-892 --- .../org/keycloak/services/resources/KeycloakApplication.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/src/main/java/org/keycloak/services/resources/KeycloakApplication.java b/services/src/main/java/org/keycloak/services/resources/KeycloakApplication.java index 0e72e392b9..89874e6558 100755 --- a/services/src/main/java/org/keycloak/services/resources/KeycloakApplication.java +++ b/services/src/main/java/org/keycloak/services/resources/KeycloakApplication.java @@ -110,15 +110,15 @@ public class KeycloakApplication extends Application { if (configDir != null) { File f = new File(configDir + File.separator + "keycloak-server.json"); if (f.isFile()) { + log.info("Load config from " + f.getAbsolutePath()); node = new ObjectMapper().readTree(f); - log.info("Loaded config from " + f.getAbsolutePath()); } } if (node == null) { URL resource = Thread.currentThread().getContextClassLoader().getResource("META-INF/keycloak-server.json"); + log.info("Load config from " + resource); node = new ObjectMapper().readTree(resource); - log.info("Loaded config from " + resource); } if (node != null) {