-
Notifications
You must be signed in to change notification settings - Fork 69
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
Broker does not accept url-encoded forward slash in instance_id #177
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/179388616 The labels on this github issue will be updated when the story is started. |
This seems to be related to gorilla/mux#132 One way to fix it would be to change the route matchers from: router.HandleFunc("/v2/service_instances/{instance_id}", apiHandler.Provision).Methods("PUT") to router.HandleFunc("/v2/service_instances/{instance_id:.*}", apiHandler.Provision).Methods("PUT") However looking toward the bottom of gorilla/mux#132 I don't think the requirement to have URL encoded characters in the @weimel is this something that you'd be interested in investigating further and submitting a PR? |
Using |
Hi @weimel. I've created PR #178 as an idea of how to this option. Rather than adding new constructors it introduces the functional options pattern which allows for more flexibility. I'm waiting for feedback from the contributor team, and they might decide that this is a bad approach. But I'd also be interested to hear your feedback, and whether it solves your problem? |
Yes, this implementation solves our issue. Thanks! |
We published the fix for this in release 8.2.0 |
We expect all our service's instance_ids to have a forward slash among other non-standard characters e.g.
a/81eb:59d6
The forward slash gets encoded to %2F but the broker still returns a 404 not found error when making a provision call. A normal string as the instance_id works perfectly fine.The text was updated successfully, but these errors were encountered: