Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Failure to check trailing "/" on a path resource next to a variable

Not applicable

soo I have a dilemma of checking a trailing "/" next to a variable. Exhibit A: <Condition>(proxy.pathsuffix JavaRegex "/{variable}(/?)") and (request.verb = "GET")</Condition>

and somehow this error shows up: Error in proxy default. Invalid condition: (proxy.pathsuffix JavaRegex "/{variable}(/?)") and (request.verb = "GET") in flow MAINFLOW. Reason: Invalid pattern specified : Illegal repetition near index 0 /{variable}(/?) ^.

so anyone could point me to a great solution? I have done these: https://community.apigee.com/questions/3212/matchi... https://community.apigee.com/questions/4284/how-do...

and no luck

0 3 335
3 REPLIES 3