Skip to content

Conversation

janbartel
Copy link
Contributor

Port HttpChannelEventTest to ee9 and re-enable it.

@janbartel janbartel requested review from gregw and sbordet November 5, 2024 04:11
@janbartel janbartel self-assigned this Nov 5, 2024
@janbartel janbartel mentioned this pull request Nov 5, 2024
39 tasks
@janbartel
Copy link
Contributor Author

@gregw and/or @sbordet please see the lines commented with //TODO as the 2 failure tests fail because these listener methods are never called. Is this expected?

@janbartel
Copy link
Contributor Author

@gregw and @sbordet nudge

@Override
public void onRequestFailure(Request request, Throwable failure)
{
//TODO never called
Copy link
Contributor

Choose a reason for hiding this comment

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

The onRequestFailure and onComplete methods will never be called for a bad request in jetty-12, as that is determined in core and thus we do not know what context the bad request would have gone to.

So this test is invalid and we should update the javadoc of the listener class to say as much

@Override
public void onResponseFailure(Request request, Throwable failure)
{
//TODO this is never called
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be a bug. I see no reason that a response failure within a context cannot be notified like this.
Further analysis required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants