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

Fix verb in route template with gRPC transcoding #47123

Merged
merged 6 commits into from
Mar 11, 2023
Merged

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Mar 10, 2023

Fixes grpc/grpc-dotnet#2054

gRPC JSON transcoding routes can have a "verb" at the end of the route. For example: /v1/greeter/{name}:calculate. It's used for the custom method pattern.

Transcoding was incorrectly ignoring the verb, which caused routing errors. This PR adds support for verb.

@JamesNK JamesNK added the area-grpc Includes: GRPC wire-up, templates label Mar 10, 2023
Copy link
Member

@BrennanConroy BrennanConroy left a comment

Choose a reason for hiding this comment

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

Is a test for trying to hit endpoint /v1/frames worth adding? Just checking that it 404's instead of 50X.

@JamesNK
Copy link
Member Author

JamesNK commented Mar 10, 2023

Good idea. Done.

@JamesNK JamesNK enabled auto-merge (squash) March 10, 2023 23:40
@JamesNK JamesNK merged commit ccb861b into main Mar 11, 2023
@JamesNK JamesNK deleted the jamesnk/transcoding-verb branch March 11, 2023 04:46
@ghost ghost added this to the 8.0-preview3 milestone Mar 11, 2023
@JamesNK
Copy link
Member Author

JamesNK commented Mar 12, 2023

/backport to release/7.0

@github-actions
Copy link
Contributor

Started backporting to release/7.0: https://github.com/dotnet/aspnetcore/actions/runs/4396401999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-grpc Includes: GRPC wire-up, templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gRPC JSON transcoding fails for HTTP paths containing ':'
4 participants