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

Handle HttpStatusException encoding a response #488

Merged
merged 3 commits into from
Jun 15, 2023
Merged

Conversation

timyates
Copy link
Contributor

HttpStatusException was handled as an internal server error.

This showed itself in the StreamTest TCK test for AWS (which calls a reactive endpoint on a synchronous connection)

When this is released, this will fix the StreamTest TCK in the AWS module

timyates added 3 commits June 14, 2023 12:19
HttpStatusException was handled as an internal server error.

This showed itself in the StreamTest TCK test for AWS (which calls a reactive endpoint on a synchronous connection)
@timyates timyates requested a review from sdelamo June 14, 2023 11:24
@timyates timyates self-assigned this Jun 14, 2023
@timyates
Copy link
Contributor Author

timyates commented Jun 14, 2023

This PR also handles Undertow flakiness.

Undertow asynchronously marks the OutputStream as being ready

In StreamTest, we throw the error quickly and the undertow has not yet set this up in an async task.

This means that for Undertow, the status is ok, but the body of the response is sometimes missing.

I added checks to make sure we don't write to an unready outputstream (as this will throw different errors, and mask the underlying status exception)

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@graemerocher graemerocher merged commit b003370 into master Jun 15, 2023
@graemerocher graemerocher deleted the error-fix branch June 15, 2023 07:13
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
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants