marcosbarbero / spring-cloud-zuul-ratelimit

Rate limit auto-configure for Spring Cloud Netflix Zuul

Home Page:https://blog.marcosbarbero.com/spring-cloud-netflix-zuul-rate-limit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consul repository not working with URL_PATTERN

Mohamedfawzy1993 opened this issue · comments

When configuring consul repository with URL_PATTEN rate-limiting, ConsulRateLimiter fail to save the rate value to the consul, because the URL contains slashes that are treated as part of the path, consul respond with 404

To Reproduce
Steps to reproduce the behavior:

  1. Configure consul repo with URL_PATTERN
  2. Pattern in my cause is like "/api/xxx/*/yyy/zzz
  3. Try rate-limting

Expected behavior
Values to be stored normally in Consul KV

  • Spring Boot Version 2.0.7.RELEASE
  • Spring Cloud Version Finchley.SR1
  • Spring Cloud Rate Limit Version 2.4.1.RELEASE

Hello @Mohamedfawzy1993, thanks for getting in touch, we will get back to you asap! If you have issues in the 1.x.x.RELEASE line we recommend you to update to the latest version, unfortunately this line is not supported anymore.

Fixed at #466