You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading one of our projects from Quarkus 2.14.2.Final to 2.16.5.Final, something broke.
After looking at the changelog, I see that smallrye-config was upgraded to 2.13.2, in which is present the following change smallrye/smallrye-config#881
which I believe it is causing the different behaviour.
I don't expect this to be "fixed" because this is probably a right behaviour but maybe a note could be added in the migration guide to pay attention to name .env variables due to possible conflicts.
Expected behavior
ProviderProps.username() returns the value defined in the .env for provider-api-username.
Actual behavior
ProviderProps.username() returns the value defined in the .env for provider-username.
I don't expect this to be "fixed" because this is probably a right behaviour but maybe a note could be added in the migration guide to pay attention to name .env variables due to possible conflicts.
Correct. This was a bug, because .env is treated as an Environment Variable source, but it was possible to set properties without the limitations of environment variables. While this was convenient, it also caused issues, since property names would not match the lookup names when performing the lookup name conversion for an Environment Variable.
Describe the bug
We have a project with a configuration as the following in the application.yaml:
with a .env for the secrets.
Then we have a configuration class as the following:
When upgrading one of our projects from Quarkus 2.14.2.Final to 2.16.5.Final, something broke.
After looking at the changelog, I see that smallrye-config was upgraded to 2.13.2, in which is present the following change
smallrye/smallrye-config#881
which I believe it is causing the different behaviour.
I don't expect this to be "fixed" because this is probably a right behaviour but maybe a note could be added in the migration guide to pay attention to name .env variables due to possible conflicts.
Expected behavior
ProviderProps.username() returns the value defined in the .env for provider-api-username.
Actual behavior
ProviderProps.username() returns the value defined in the .env for provider-username.
How to Reproduce?
Clone the repository
/~https://github.com/luce98/quarkus-reproduce-config-issue
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.16.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: