You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When replacing URI path elements using the function encoding/httpbinding.replacePathElement, if a later path element's name is a substring of a previous element, e.g. /{namespace}/{name}, it will fail with the following error:
serialization failed: invalid path element, does not contain token stop, /{namespace}/{name}
This does not happen if the substring occurs earlier in the URI, e.g. /{name}/{namespace}.
To reproduce, add the following test cases to TestPathReplace:
When replacing URI path elements using the function
encoding/httpbinding.replacePathElement
, if a later path element's name is a substring of a previous element, e.g./{namespace}/{name}
, it will fail with the following error:This does not happen if the substring occurs earlier in the URI, e.g.
/{name}/{namespace}
.To reproduce, add the following test cases to
TestPathReplace
:The first case will fail with
The text was updated successfully, but these errors were encountered: