Skip to content
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

Make 404 page work on Undertow #41448

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

phillip-kruger
Copy link
Member

Fix #41372

This was a bit more tricky than anticipated. Initially I just wanted to do event.next when the route is not found so that the request falls down to the Vertx.http handling of 404, However, after trying and talking to Stuart, I realized this is not really possible, as once the request is handed to undertow, there is no way to know if the route is found, except at looking at the response, that is now written so no way to do event.next.

So to allow for this, all the 404 data that is setup during build is moved to an CDI bean that can now be used in the Vertx handler (default case) but also now in a servlet that write 404 responses for Undertow.

Because of this change I could also change the Dev UI to use the preferred Json-RPC way of getting the info, vs as before we just did a fetch on a non-exciting url to get the 404 data.

This comment has been minimized.

Signed-off-by: Phillip Kruger <[email protected]>
Copy link

quarkus-bot bot commented Jun 26, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 2e37b5f.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@phillip-kruger
Copy link
Member Author

@cescoffier - CI is green, please have a look. This is the one we discussed.

@phillip-kruger phillip-kruger merged commit 058be55 into quarkusio:main Jun 27, 2024
52 checks passed
@gsmet gsmet added this to the 3.12.1 milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DevUI: Endpoints error using Quarkus MyFaces extension (works in 3.8.4 LTS)
4 participants