Skip to content

Conversation

@lachlan-roberts
Copy link
Contributor

Closes #12720

Currently SecurityHandler does only Response.writeError when a 403 response needs to be sent. However this will not dispatch to a servlet error page, for this we need to do AuthenticationState.writeError and handle the case if it returns AuthenticationState.ServeAs.

@gregw
Copy link
Contributor

gregw commented Oct 13, 2025

@lachlan-roberts the CI failures look to be more than flakes.

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more than flakes

@lachlan-roberts
Copy link
Contributor Author

@gregw the tests are failing because the AuthenticationState.writeError and ErrorHandler.writeError do not support taking a message string.

So do you think i should adjust both the AuthenticationState.writeError and ErrorHandler.writeError API to take a String message, or should I adjust the tests to not check for the !authroized string?

@lachlan-roberts lachlan-roberts requested a review from gregw October 20, 2025 23:33
Signed-off-by: Lachlan Roberts <[email protected]>
@lachlan-roberts lachlan-roberts requested a review from gregw October 21, 2025 00:19
gregw
gregw previously requested changes Oct 21, 2025
Signed-off-by: Lachlan Roberts <[email protected]>
@lachlan-roberts lachlan-roberts requested a review from gregw October 29, 2025 01:31
@sbordet sbordet requested a review from joakime November 5, 2025 21:32
@lachlan-roberts lachlan-roberts dismissed gregw’s stale review November 6, 2025 23:30

addressed review

@joakime joakime merged commit c0e3fb6 into jetty-12.1.x Nov 10, 2025
11 checks passed
@joakime joakime deleted the fix/jetty-12.1.x/12720-ErrorDispatchFromSecurityHandler branch November 10, 2025 16:04
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Jetty 12.1.4 - FROZEN Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Error attributes not set on request in Jetty 12

4 participants