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

transport: add HTTP status and grpc status to response if POST check fails #5364

Merged
merged 2 commits into from
May 19, 2022

Conversation

zasweq
Copy link
Contributor

@zasweq zasweq commented May 18, 2022

Fixes issue #2881. This switches what was originally there (RST Stream) to a full HTTP Response with desired HTTP and gRPC status. Both of these abide to language of issue "grpc-go should fail RPCs if the method is anything but POST". This also abides to Eric's point of reopening this issue, which is that the response should be "An HTTP response with HTTP status code".

RELEASE NOTES:

  • server: respond with HTTP Status 405 and gRPC status INTERNAL if the method from client is not POST

@zasweq zasweq requested a review from dfawley May 18, 2022 00:20
@zasweq zasweq added Type: Bug Type: Behavior Change Behavior changes not categorized as bugs fixit and removed Type: Bug labels May 18, 2022
@zasweq zasweq added this to the 1.47 Release milestone May 18, 2022
Copy link
Member

@dfawley dfawley left a comment

Choose a reason for hiding this comment

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

Please add some release notes. All bug/feature/behavior change PRs should have them.

@dfawley dfawley assigned zasweq and unassigned dfawley May 19, 2022
@zasweq zasweq merged commit 9f4b31a into grpc:master May 19, 2022
@dfawley dfawley changed the title Added HTTP status and grpc status to POST check transport: add HTTP status and grpc status to response if POST check fails May 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixit Type: Behavior Change Behavior changes not categorized as bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants