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
Expected:
version = v1.0
everything = operatore/R80QQ5J9600/valida
Actual Behavior
version = v1.0/operatore/R80QQ5J9600
everything = valida
in the previous version, the behavior was as expected
Steps to Reproduce the Problem
Set the configuration in the gateway with an ocelot.settings.json file with an UpstreamPathTemplate as indicated in the first point and create an endpoint in the API with the path indicated in the first point.
Specifications
Version: 23.4.0.0
Platform: .net 9 win
The text was updated successfully, but these errors were encountered:
Yes, as a CatchAll placeholder, it should cover as much path segments as it can.
Moreover, I propose to have a check if placeholders are docked to each other, if yes, then first placeholders should cover data of one path segment, the last placeholder should extract data as much it can but except first docked placeholders.
The problem is the main regex, it should match only between slashes. But if so, then it can't match the Catch All. So, I must invert the logic here: 1) catch all query, 2) catch all path, remove the catch all part, 3) validate the rest. At the minute we have 1) catch all query, 2) validate placeholders 3) catch all path. And that's wrong, but all tests passed ;-)
…r should be allowed to match several segments (#2213)
* #2212 Incorrect calculation of placeholders, fixing the issue and adding unit and acceptance tests verifying the behavior.
* Code review by @raman-m:
Convert anonimous delegate to local function.
---------
Co-authored-by: Raman Maksimchuk <[email protected]>
Expected Behavior
Path: /dati-registri/v1.0/operatore/R80QQ5J9600/valida
Template: /dati-registri/{version}/{everything}
Expected:
version = v1.0
everything = operatore/R80QQ5J9600/valida
Actual Behavior
version = v1.0/operatore/R80QQ5J9600
everything = valida
in the previous version, the behavior was as expected
Steps to Reproduce the Problem
Set the configuration in the gateway with an ocelot.settings.json file with an UpstreamPathTemplate as indicated in the first point and create an endpoint in the API with the path indicated in the first point.
Specifications
The text was updated successfully, but these errors were encountered: