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

#749 Bad error handling for IOException while reading incoming request body #1769

Conversation

ggnaegi
Copy link
Member

@ggnaegi ggnaegi commented Oct 31, 2023

Fixes #749

The error handling in ocelot is hiding the 413 payload too large exception. As @raman-m pointed out, a deeper error handling review is needed. Here, I have implemented a quick fix to this issue and I would recommend opening a new issue for the error handling review.

Proposed Changes

  • Handling BadHttpRequestException and if status code == 413, then returning a PayloadTooLargeError
  • Adding two acceptance tests for kestrel and HttpSys instances

@ggnaegi ggnaegi changed the title Bad error handling for IOException while reading incoming request body 749 Bad error handling for IOException while reading incoming request body Oct 31, 2023
@ggnaegi ggnaegi changed the title 749 Bad error handling for IOException while reading incoming request body #749 Bad error handling for IOException while reading incoming request body Oct 31, 2023
@ggnaegi
Copy link
Member Author

ggnaegi commented Oct 31, 2023

@raman-m I just added a skippable fact, since httpsys is compatible with Windows platform only.

@raman-m raman-m added bug Identified as a potential bug low Low priority labels Nov 1, 2023
@raman-m raman-m added the conflicts Feature branch has merge conflicts label Nov 25, 2023
@raman-m
Copy link
Member

raman-m commented Nov 25, 2023

Please, resolve conflicts!

@ggnaegi ggnaegi force-pushed the bug/749_Bad_error_handling_for_IOException_while_reading_incoming_request_body branch from 78a5c54 to d65d9ac Compare December 13, 2023 23:13
@ggnaegi
Copy link
Member Author

ggnaegi commented Dec 14, 2023

@raman-m you can review it, code is not great, but it's working. I propose reviewing the exception handling later...

@raman-m raman-m removed the conflicts Feature branch has merge conflicts label Dec 16, 2023
@raman-m
Copy link
Member

raman-m commented Dec 16, 2023

@ggnaegi commented on Dec 14

Thanks for update!
Not urgent. Not planned.
I'll review after the current Nov'23 release... You know we're focusing on it now...

@ggnaegi
Copy link
Member Author

ggnaegi commented Dec 16, 2023

@ggnaegi commented on Dec 14

Thanks for update! Not urgent. Not planned. I'll review after the current Nov'23 release... You know we're focusing on it now..

@raman-m but we discussed this... remember, but ok for later.

@raman-m
Copy link
Member

raman-m commented Feb 17, 2024

@ggnaegi Please resolve conflicts and rebase onto develop!
I need to decide on release version to include it into. What's readiness of the PR? Will you develop more?
If it is highly ready then we can add the PR to Jan'24 release.

@ggnaegi
Copy link
Member Author

ggnaegi commented Feb 17, 2024

@raman-m Yes, it can be part of Jan 24 Release

@raman-m raman-m added the Jan'24 January 2024 release label Feb 22, 2024
@raman-m raman-m added this to the January'24 milestone Feb 22, 2024
@raman-m
Copy link
Member

raman-m commented Feb 25, 2024

@ggnaegi Please resolve conflicts!

@ggnaegi ggnaegi force-pushed the bug/749_Bad_error_handling_for_IOException_while_reading_incoming_request_body branch from 629ccb2 to 21113db Compare March 1, 2024 08:53
@raman-m raman-m changed the title #749 Bad error handling for IOException while reading incoming request body #749 Bad error handling for IOException while reading incoming request body Mar 1, 2024
Copy link
Member

@raman-m raman-m left a comment

Choose a reason for hiding this comment

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

Ready for delivery! ✅

  • Code review ✔️
  • Team approvals ✔️
  • Unit testing ✔️
  • Acceptance tests ✔️✔️

@raman-m raman-m merged commit 42ac3ca into ThreeMammals:develop Mar 1, 2024
2 checks passed
@raman-m raman-m mentioned this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identified as a potential bug Jan'24 January 2024 release low Low priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad error handling for IOException while reading incoming request body
4 participants