#31654: Memcached key validation raises TypeError on invalid characters
-----------------------------------------------+---------------------------
               Reporter:  Tim McCormack        |          Owner:  nobody
                   Type:  Bug                  |         Status:  new
              Component:  Core (Cache system)  |        Version:  2.2
               Severity:  Normal               |       Keywords:  memcached
           Triage Stage:  Unreviewed           |      Has patch:  0
    Needs documentation:  0                    |    Needs tests:  0
Patch needs improvement:  0                    |  Easy pickings:  0
                  UI/UX:  0                    |
-----------------------------------------------+---------------------------
 On Django 2.2.13 the code for `memcache_key_warnings` in
 `django/core/cache/backends/base.py` has a bad format string that results
 in raising an exception rather than just producing a warning. This can be
 reproduced with a memcached key with a space in it, e.g. `"foo bar"`.

 This code was present before the 2.2.13 release, but becomes more exposed
 with that release, since it begins validating cache keys.

 I think it's as simple as removing the `, CacheKeyWarning`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31654>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.ba564e2e5eab515eee75eba2954fa338%40djangoproject.com.

Reply via email to