-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Quarkus Configuration Disambiguation strategy for environment variables fails in 3.17.0+ #46245
Comments
/cc @Karm (native-image), @galderz (native-image), @radcortez (config), @zakkak (native-image) |
I believe this issue was incorrectly labeled with |
cc @radcortez |
I'm wondering, but am unsure, if this has something to do with the behavior change by an upgrade to SmallRye Config 3.10.0 done in |
I believe I found the suspect PR for the behavior change. It is in the smallrye upgrade to 3.10.0: smallrye/smallrye-config#1220 This PR adds a new construct to define a required list of keys for a It seems to be tripping up on a call to |
I'll have a look. |
Describe the bug
The Quarkus configuration reference guide describes how to disambiguate configuration properties with dynamic segments. The recommended approach is to check in the expected configuration key with a value left empty to enable it to be configured via an environment variable.
Expected behavior
The server can start/tests can run without providing an optional entry for a dynamic configuration value.
Actual behavior
This behavior breaks on an upgrade from 3.16.4 to 3.17.0. I tested 3.18.3 and 3.19.0.CR1 to ensure this hasn't been fixed yet.
It fails with the following error in a Quarkus component test:
A similar error occurs with the Quarkus test
How to Reproduce?
QuarkusComponentTest
QuarkusTest
./gradlew :lib:quarkusDev
, seeing that the app fails to start up and serve the API.Output of
uname -a
orver
Darwin mac
Output of
java -version
openjdk version "21.0.6" 2025-01-21 LTS
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.18.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)8.12.1
Additional information
No response
The text was updated successfully, but these errors were encountered: