product-microgateway
product-microgateway copied to clipboard
When a long basepath is used, apiTenant property in the throttle event is populated incorrectly.
Description:
When the basepath property contains few terms ( more than 3) separated using few backslashes, the resource level throttling does not work. The reason is that the apiTenant property of the event, being populated incorrectly.
Steps to reproduce:
Initialize microgateway project Then add an openAPI definition. Make sure you have a baspath with 4 components. "/pizzashack/temp1/temp2/temp3" Add a throttling tier as well. Build the microgateway project. Run the microgateway with distributed throttling enabled. In the meantime, enable debug logs in the microgateway or add a logging publisher using /carbon portal. Basically idea here is to see the throttle event.
Affected Product Version:
3.1.0
Environment details (with versions):
- OS: MacOS Mojave
- Client:
- Env (Docker/K8s):