-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Autogenerated application with oidc-db-token-state-manager
fails to be built
#39408
Comments
/cc @pedroigor (oidc), @sberyozkin (oidc) |
This is expected, see https://github.com/quarkusio/quarkus/blob/main/extensions/oidc-db-token-state-manager/deployment/src/main/java/io/quarkus/oidc/db/token/state/manager/OidcDbTokenStateManagerProcessor.java#L96, you don't add any reactive client extensions, but it should've failed at that stage where it is checked for null. The docs for the |
Expected behavior The app is built is wrong expectation, but truth is that we should probably just fire config exception straight away because synthetic bean build item is produced for phrase 3 and and validation errors are only produced in phase 5, so the NPE will always win. Didn't know about that. |
Hm, I would expect the build to fail as the CC @dmlloyd |
Right, I agree that we should not allow |
I can try to send a PR with a fix but I'm afraid that it will break a lot of things :-( |
I think it's probably OK to break things on a fix like this. But if you'd prefer not to do it, I totally understand. I can add it to my list. |
Let's see how many things will break first... |
- to avoid unexpected NullPointerException - build steps should consume java.util.Optional instead - follow-up to quarkusio#39408
Describe the bug
I use
create
option ofquarkus-maven-plugin
to generate an app withoidc-db-token-state-manager
extension. When I try to build the app (without any changes) it fails.Expected behavior
The app is built
Actual behavior
How to Reproduce?
mvn -Dquarkus-plugin.version=3.8.1 -DquarkusRegistryClient=false io.quarkus:quarkus-maven-plugin:3.8.1:create -DprojectGroupId=io.quarkus.qe -DprojectVersion=1.0.0-SNAPSHOT -Dextensions=oidc-db-token-state-manager -DprojectArtifactId=reproducer
cd reproducer
mvn clean package -DskipTests
Output of
uname -a
orver
6.7.3-200.fc39.x86_64
Output of
java -version
Java version: 21.0.1, vendor: Eclipse Adoptium
Quarkus version or git rev
3.8.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Additional information
Same error for 3.8.2
The text was updated successfully, but these errors were encountered: