-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache key contains reserved characters aka IPv6 support #115
Comments
Friendly ping. |
I think we can sanitize the key first. We have to check if this can cause any issues (I think not though). Also, I agree we should it should fail without error. |
Fixed the key issue by sanitizing any keys that will be send to redis. Still need to fix the safe failure |
Go for #116 |
@jaytaph : Do you think we should open another issue about this? |
Note: About the changelog. The issue wasn't so much about Redis but about Symfony simple_cache restriction. (My backend was a Unix filesystem which handle colons) |
I see now that this is indeed not directly a Redis issue, but a symfony/cacheItem. This means the premise for this bugfix seems wrong. I would suggest the following:
Further, since we support simple_cache driver which in itself uses a I'm not sure if sanitization then needs to be in the rate limiter, or in this case you would need to have a wrapper around it that does the sanitation for it. I can imagine we would run into issues when other implementation would use other reserved characters, which we would in turn need to sanitize as well. |
I think handling this in this bundle makes sense since forbidding characters (what |
ping |
I'm using the following RateLimit for the Route of one of my controllers:
@RateLimit(methods={"PUT", "POST"}, limit=35, period=3600)
and use the following storage backend:
Sadly, once I started getting IPv6 flowing my controller started failing badly:
This is really bad because:
The text was updated successfully, but these errors were encountered: