diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/KeycloakPropertiesConfigSource.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/KeycloakPropertiesConfigSource.java index a91feda9a1d7..e09069bf9061 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/KeycloakPropertiesConfigSource.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/KeycloakPropertiesConfigSource.java @@ -63,7 +63,21 @@ protected String[] getFileExtensions() { @Override protected ConfigSource loadConfigSource(URL url, int ordinal) throws IOException { - return new PropertiesConfigSource(transform(ConfigSourceUtil.urlToMap(url)), url.toString(), ordinal); + // a workaround for https://github.com/smallrye/smallrye-config/issues/1207 + // replace by the following line when fixed: + // return new PropertiesConfigSource(transform(ConfigSourceUtil.urlToMap(url)), url.toString(), ordinal); + var cs = new PropertiesConfigSource(transform(ConfigSourceUtil.urlToMap(url)), url.toString(), ordinal) { + private String name; + @Override + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + }; + cs.setName(url.toString()); + return cs; } public static class InClassPath extends KeycloakPropertiesConfigSource implements ConfigSourceProvider {