-
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
URLs using verb no longer work after upgrading to v1.5.0 #760
Comments
Argh, thanks for raising this issue! Terribly sorry to have broken your workflow. It looks like we have to revert #708, is that correct? |
One solution could be to introduce a ServeMuxOption to allow Patterns created without a verb to match requests using a verb. This way, using colons in IDs is an opt-in feature instead of breaking backward compatibility. |
Yeah, backwards compatibility is paramount here, of course. It also seems like the wrong thing to support this tbh, I'm just disappointed we didn't discover it earlier and didn't break users. I'll see what some of the others think but we'll likely just revert #708 and continue the discussion in #224. |
The solution for grpc-ecosystem#224 turned out to break backwards compatibility, so we're going to have to find another solution for users who desire this behaviour. Also adds test cases from grpc-ecosystem#760.
We tested out the latest 1.5.0 release and noticed it broke our URLs that use colons with a custom verb, like described here: https://cloud.google.com/apis/design/custom_methods
In our case we have a both a "Get" method and a custom method sharing parts of the URL, like this:
When upgrading from v1.4.1 to v1.5.0 requests no longer seem to reach the
StreamDevices
method.Steps you follow to reproduce the error:
By extending the
TestMuxServeHTTP
test with the following test-case, I'm able to trigger the same issue:What did you expect to happen instead:
I would expect the test to reach the
/foo/{id=*}:verb
pattern, or in our case reach theStreamDevices
method as in the previous releases.What's your theory on why it isn't working:
It seems to be a side-effect of fixing #224.
The text was updated successfully, but these errors were encountered: