-
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
[resteasy-reactive] unrecognized configuration key "quarkus.security.jaxrs.deny-unannotated-endpoints" #25591
Comments
@radcortez to fix this, we would need a new build item that would remove items from |
Hum, do we have a different rule or behaviour for this particular configuration property between classic and reactive? |
No, the issue with this is that we have the exact same configuration class for both RESTEasy Classic and Reactive, but we cannot have a Quarkus config class for both, because otherwise an application that mixes RESTEasy Classic and Reactive will get errors that are totally non-actionable (as opposed to now, where there is a great error message stating that the two can't be mixed). |
Ah, I see this here: Lines 76 to 80 in 4094b4f
Do we have something that prevents double mapping in the ConfigRoot? Can't remember, I'll have to check. I don't see a reason for that. Did you tried that before? Did you got an error? Do you remember? |
The exception looks something like:
(an example reported can be found here) |
I understand that we would add the build step to remove such cases. I'm just not sure if this is something that we want to add since it will create an exception to our current configuration rules. I'm wondering if we should lift the restriction of the double mapping. I believe it should be ok. I think it is perfectible acceptable for different extensions to refer to the same configuration names (especially considering that you can get the values programmatically anyway). |
In sounds fine in theory :) |
Ok, I'll have a look into this. |
👍🏼 |
Lifting the |
Describe the bug
when using
resteasy-reactive
in combination with the configurationquarkus.security.jaxrs.deny-unannotated-endpoints
quarkus prints an "unrecognized configuration key" warning on startupaltough the configuration is recognized and works as expected.
when using resteasy-classic, no such warning is printed
Expected behavior
quarkus starts without "unrecognized configuration key" warning
Actual behavior
warning on startup:
Unrecognized configuration key "quarkus.security.jaxrs.deny-unannotated-endpoints" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
openjdk version "11.0.11" 2021-04-20
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.9.0-Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.0 Maven home: /usr/share/maven Java version: 11.0.11, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Additional information
No response
The text was updated successfully, but these errors were encountered: