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(runtime): fix path parsing to use URL.EscapedPath() instead of Path and unescape individual components #2259

Closed
wants to merge 3 commits into from

Conversation

remyleone
Copy link

@remyleone remyleone commented Jul 30, 2021

Basically, we want to route for instance http://example.com/resources/some%2Fpath/something from this HTTP annotation :

get: /resources/{key}/something

We want the key field in gRPC to be able to contain 0 or many slashes

Should this behavior be configurable to avoid breaking changes?

References to other Issues or PRs

#660

Have you read the Contributing Guidelines?

Brief description of what is fixed or changed

Other comments

…th and unescape individual components

Basically we want to route for instance http://example.com/resources/some%2Fpath/something from this http annotation :

    get: /resources/{key}/something

We want the  key field in gRPC to be able to contain 0 or many slashes

grpc-ecosystem#660
@google-cla google-cla bot added the cla: yes label Jul 30, 2021
@remyleone remyleone marked this pull request as draft July 30, 2021 09:09
Copy link
Collaborator

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

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

I'd like to rope in both @achew22 and @ivucica who were part of the discussion last time this came up. It seems to me this is a bug fix, and even though it may break users it would be fixing broken behavior. Would you agree that this change is OK?

@stale
Copy link

stale bot commented Oct 1, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 1, 2021
@stale stale bot closed this Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants