From 2728befc9641f520b1f177fbd143a2795c42e5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Muzik=C3=A1=C5=99?= Date: Tue, 6 Aug 2024 09:42:04 +0200 Subject: [PATCH] Fix QuarkusPropertiesConfigSource MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Muzikář --- .../runtime/configuration/QuarkusPropertiesConfigSource.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/QuarkusPropertiesConfigSource.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/QuarkusPropertiesConfigSource.java index b04878816bad..d433739540d6 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/QuarkusPropertiesConfigSource.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/QuarkusPropertiesConfigSource.java @@ -57,7 +57,10 @@ public static boolean isSameSource(ConfigValue value) { return false; } - return NAME.equals(value.getConfigSourceName()); + // workaround for https://github.com/smallrye/smallrye-config/issues/1207 + // replace by the following line when fixed: + // return NAME.equals(value.getConfigSourceName()); + return value.getConfigSourceName() != null && value.getConfigSourceName().endsWith(FILE_NAME); } public static Path getConfigurationFile() {