-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
When I have :/ it fails to make the mapping #308
Comments
@ggeorgiev hi there, thanks for your issue report -- could you please put this sort of failing scenario into a test case? |
@tmc Hi, I will try to find some time to do so. Considering that I am not familiar with the code base and the usual bootstrap overhead it might take some time. Meanwhile, someone that is working on the project probably will have success to reproduce the issue considering that there is nothing tricky for the scenario to expose it and it is 100% reproducible. |
I did not find where to add such test, but this code seem suspicious because it seems to analyses system characters over already decoded version of the path.
|
This is a comment in the URL package: I replaced in the quoted before code |
The problem actually is way more serious from what I noticed initially. Essentially any value in the path that includes '/' will completely mess up the components. |
ping - is someone looking at this? Seems like a serious issue. |
@ggeorgiev you can simply capture those parameters in either get params or in the body for now. If you can submit a failing test case it will lower the barrier to fixing this. |
We were also hit by this issue. I submitted PR #660 which allows encoded slashes as part of a path. |
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. |
This bug still happens with grpc-gateway v1.14.4 |
Hi, thanks for the bump. I'll repopen. Would you be interested in submitting a fix? |
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. |
When I have a string variable in the url that contains :/ (escaped as %3A%2F) the mapping fails with error Not Found
The text was updated successfully, but these errors were encountered: