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
Command-level configuration is never taken into consideration #352
Comments
@lppedd do you have a reproducer? Because I have tests for that. Now maybe the test infrastructure hides something so having a reproducer would certainly help. |
@gsmet Sure, I will strip my app and upload a .zip file. Let's see what happens. |
OK, I have a patch ready so I'll be able to check it actually fixes your issue (and hopefully add a test if it's doable). |
@gsmet https://drive.google.com/file/d/1CZVYncIvrhYaGKtuIog7i5tHNoJXl0UX/view?usp=sharing |
I downloaded the reproducer. Because I suspect the problem is only there in dev mode and is related to some changes in the Quarkus dev mode. That's why the tests are OK. I have a fix, trying to prepare a test for it. |
@gsmet yup! I was in test mode, you're right. |
@gsmet just noticed I wrote "test mode" instead of "dev mode". |
1.11.1 has been released with a fix and is available on Maven Central. Thanks for reporting the issue! |
Rather than using the class of the command instance, we can use the metadata directly. Figured it out while working on the reaction strategy patch.
As you can see the command class name is the Quarkus-created one, not the original one.
This means
commandConfigs.getOrDefault
will always return the default one, from the@Cli
.Same for
CommandPermissionConfig
orCommandTeamConfig
.This is pretty severe imho.
The text was updated successfully, but these errors were encountered: