Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[policy] [dynamic-routing] Invalid path with virtual host feature #2640
Not sure if the dynamic routing policy is working correctly. The match expression does not work with a "/" character as prefix. Without the slash as prefix the expression works.
Yesterday i submitted the bug 2632. I saw that it was closed and tried the fix on my local system.
When i define a subpath in the api designer policy, e.g. "/v1", then the match expression should also start with a slash, e.g. "/v1(.*)", like it is described in the documentation.
The DynamicRoutingPolicy does not find a rule which is matching the expression. When i change the match expression to "v1(.*)" then it works
Steps to Reproduce (for bugs)
An example of the api is attached bellow.
If have multiple paths of an api. The dynamic routing is different for each path.