-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
NET9.NET 9 release.NET 9 releasemergedIssue has been merged to dev and is waiting for the next releaseIssue has been merged to dev and is waiting for the next release
Milestone
Description
Hi guys.
I discovered strange and different routing behavior between versions 22.0.1
and 23.0.0
.
Expected Behavior
In version 22.0.1
the routing works well as expected.
We have the following configuration:
{
"DownstreamPathTemplate": "/{tenantId}/products?{everything}",
"UpstreamPathTemplate": "/{tenantId}/products?{everything}",
"UpstreamHttpMethod": [ "Get" ]
},
{
"DownstreamPathTemplate": "/{tenantId}/products/{everything}",
"UpstreamPathTemplate": "/{tenantId}/products/{everything}",
"UpstreamHttpMethod": [ "Get" ]
},
When I call a request
GET localhost/1/products/1
then the correct route "/{tenantId}/products/{everything}"
is selected.
Actual Behavior
In version 23.0.0
the "DownstreamPathTemplate":"/{tenantId}/products?{everything}"
path is chosen for some reason, which is not correct.
Specifications
- Version: >23.0.0
Maybe this PR? #748
Any idea for a quick fix on my part?
Thank you very much.
Metadata
Metadata
Assignees
Labels
NET9.NET 9 release.NET 9 releasemergedIssue has been merged to dev and is waiting for the next releaseIssue has been merged to dev and is waiting for the next release
Type
Projects
Status
Done