-
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
Quarkus 2.12.0.CR1 - Map style config property resolution does not work in native mode #27353
Comments
@radcortez could you have a look at this one? It looks like a blocker for 2.12. |
This is almost certainly caused by #26802. The reason it works in JVM mode is because in that case the property read directly from the JAR file. This specific issue would be fixed if we used EDIT: I just saw that what I explained above is pretty much also mentioned in #27231 (comment) |
So question: is the cure worse than the disease? My understanding is that any map based config won't work in native from now on? It seems like something problematic and I wonder if we should revert this particular patch until @radcortez can revisit it. WDYT? |
Only bracket based keys are problematic (and then only in native mode). The Quarkus Config maps using |
After discussion with @geoand , it only affects using brackets which is not what we recommend (we recommend the dot notation even for maps). So we can live with it for .0.Final and we will discuss it when @radcortez is back. |
This requires a new release of SR Config with smallrye/smallrye-config#805. |
Describe the bug
In Camel Quarkus it's possible to have some configuration like the following in
application.properties
:Where the
config[customPool]
part denotes a map key that Camel can resolve internally. This all works fine in JVM mode. Since2.12.0.CR1
, resolution of such properties no longer seems to work in native mode. The config keys seem to be present, but their associated values are not resolvable.Expected behavior
The properties are resolvable as expected in native mode.
Actual behavior
See comments in the main description.
How to Reproduce?
There's a reproducer project here:
https://github.com/jamesnetherton/smallrye-config-demo
See instructions in the README for how to run. Tests fail with
2.12.0.CR1
, they pass with2.11.2.Final
.The text was updated successfully, but these errors were encountered: