[1.9.x] Fixed #26332 -- Fixed a race condition in BaseCache.get_or_set().

Backport of 96ec67a7cf from master
This commit is contained in:
Przemysław Suliga 2016-03-06 11:34:23 +01:00 committed by Tim Graham
parent 809eb5ddee
commit 76926f343a
3 changed files with 17 additions and 6 deletions

View file

@ -12,3 +12,7 @@ Bugfixes
* Made ``MultiPartParser`` ignore filenames that normalize to an empty string
to fix crash in ``MemoryFileUploadHandler`` on specially crafted user input
(:ticket:`26325`).
* Fixed a race condition in ``BaseCache.get_or_set()`` (:ticket:`26332`). It
now returns the ``default`` value instead of ``False`` if there's an error
when trying to add the value to the cache.