Two Resource paths with and without URL parameter

Hi,

We have two resource paths configured in default.xml

i.e., /accounts/{param}/products with condition

<Condition>request.verb = "GET" AND (proxy.pathsuffix MatchesPath "/accounts/{param}/products")</Condition>

and /accounts/products with condition

<Condition>request.verb = "GET" AND (proxy.pathsuffix MatchesPath "/accounts/products")</Condition>

If the resource path is /accounts//products, Apigee is converting the path to /accounts/products and entering the flow with /accounts/products as the resource path.

Is it an expected behaviour of Apigee converting "//" to "/"?

Thanks in Advance

Comments
ateebshaik
Bronze 5
Bronze 5

Hi @Nitesh Shivarao Nadiger,

Yes this is expected as it will ignore one ' / ' . This ie expected for any url , try httpbin.org/xml and httpbin.org//xml . Both will give you same result

Version history
Last update:
‎01-30-2019 05:08 AM
Updated by: