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

Fixed #12603 Errors logged after cross context dispatch #12606

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Dec 3, 2024

Fixed #12603 Errors logged after cross context dispatch:

  • Update bytes written in HttpOutput when bypassed by optimization
  • abort if error dispatch throws

Fixed #12603 Errors logged after cross context dispatch:
 + Update bytes written in HttpOutput when bypassed by optimization
 + abort if error dispatch throws
@gregw
Copy link
Contributor Author

gregw commented Dec 4, 2024

@sbordet @janbartel review please!

joakime
joakime previously approved these changes Dec 4, 2024
@joakime joakime added High Priority Bug For general bugs on Jetty side Sponsored This issue affects a user with a commercial support agreement labels Dec 4, 2024
ExceptionUtil.addSuppressedIfNotAssociated(x, t);
throw x;
}
abort(x);
Copy link
Contributor

Choose a reason for hiding this comment

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

The logic is now completely different from before... Is that ok?

Copy link
Contributor Author

@gregw gregw Dec 5, 2024

Choose a reason for hiding this comment

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

That's what I'm asking you as the reviewer!)
The issue was that we have an exception whilst trying to write an error page and we handle it by trying to write an error page.... which resulted in a nasty loop. I think aborting if an error page cannot be generated is the best thing to do

@joakime joakime mentioned this pull request Dec 5, 2024
50 tasks
@gregw gregw requested a review from sbordet December 5, 2024 20:26
Fix ee10 also
@gregw
Copy link
Contributor Author

gregw commented Dec 5, 2024

This issue is somewhat related to #11325

@gregw gregw requested a review from joakime December 5, 2024 21:55
@joakime
Copy link
Contributor

joakime commented Dec 5, 2024

Waiting on CI green before I merge and stage 12.0.16

@joakime joakime merged commit a3f6bda into jetty-12.0.x Dec 5, 2024
10 checks passed
@joakime joakime deleted the fix/12603/ee9crossContextErrorHandling branch December 5, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side High Priority Sponsored This issue affects a user with a commercial support agreement
Projects
Status: ✅ Done
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

ee9 / UnsupportedOperationException: Read Only
3 participants