Owerride configuration properties from smallrye.config.locations #40767
Labels
area/config
area/smallrye
kind/bug
Something isn't working
triage/upstream
Used for issues which are caused by issues in upstream projects/dependency
Describe the bug
When connecting additional configuration, not all properties are overridden.
For example, when using camel-quarkus-jasypt, there is no way to override the quarkus.camel.jasypt.password parameter by specifying it in the configuration file connected through smallrye.config.locations.
At the same time, other parameters that are used in runtime are redefined as expected.
Expected behavior
Parameters specified in src/main/resources/etc/add.properties and connected through smallrye.config.locations must take precedence over src/main/resources/application.properties.
Actual behavior
quarkus.camel.jasypt.password parameter is not overwritten. As a result, when starting the service, an error occurs: Suppressed: org.jasypt.exceptions.EncryptionOperationNotPossibleException
How to Reproduce?
https://github.com/koskom-alt/config_location_test.git
execute mvn quarkus:dev -Dsmallrye.config.locations=file:{your_path}/add.properties
Output of
uname -a
orver
Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 arm64
Output of
java -version
java version "17.0.11" 2024-04-16 LTS Java(TM) SE Runtime Environment Oracle GraalVM 17.0.11+7.1 (build 17.0.11+7-LTS-jvmci-23.0-b34) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 17.0.11+7.1 (build 17.0.11+7-LTS-jvmci-23.0-b34, mixed mode, sharing)
Quarkus version or git rev
3.10.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Additional information
In native mode the problem persists.
The text was updated successfully, but these errors were encountered: