-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot override list config property in Quarkus 3.17 #44891
Comments
/cc @radcortez (config) |
@fire2 can you please check if #44838 fixes the issue? Alternatively, you can try: #44811 (comment) |
Explicitly using
I confirmed checking the dependency tree that 3.10.2 is being used. |
It has to be |
I thought 3.10.2 has the reverted change. Anyways, I tried now with 3.9.1.
And it still doesn't work. |
@radcortez FWIW, there's a reproducer attached so you should be able to reduce the feedback loop :). |
Yes. I was already looking into it. Because the issue seems very similar to #44811, I thought that was the problem. I'm sorry for that. This is a different case caused by smallrye/smallrye-config#1202. A collection configuration value can be represented as This usually is not a problem because users use only one of the styles, but the YAML source is tricky (also related to #44811). The So, in the end, the I think I have an idea to support the new priority and still make it overrideable with both styles. |
Describe the bug
In Quarkus 3.17, a config property of type list specified in yaml as:
cannot be overwritten via system property such as:
This worked fine in 3.16.x and should work according to the Quarkus documentation.
Expected behavior
List config property can be overwritten as on Quarkus 3.16
Actual behavior
Default value from application.yaml is used instead of value specified in system property. The same behaviour is observed with environment variable, it doesn't override the default value either.
How to Reproduce?
Output of
uname -a
orver
Darwin LPTP2036320 23.6.0 Darwin Kernel Version 23.6.0: Thu Sep 12 23:36:12 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6020 arm64
Output of
java -version
openjdk version "21.0.1" 2023-10-17 LTS
Quarkus version or git rev
3.17.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6
Additional information
No response
The text was updated successfully, but these errors were encountered: