#28066: SessionBase.cycle_key may discard session data
--------------------------------------------+------------------------
Reporter: InvalidInterrupt | Owner: nobody
Type: Bug | Status: new
Component: contrib.sessions | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
--------------------------------------------+------------------------
The `cycle_key()` method will use an empty `dict` for session data if it
had not previously been loaded. The docstring says the function is there
specifically to avoid losing sesison data, and the behavior feels
inconsistent. This won't be noticed on most sites, as the
`AuthenticationMiddleware` accesses the session on every request. However,
it did cause problems for me in unittests for some views.
--
Ticket URL: <https://code.djangoproject.com/ticket/28066>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/059.e39914890e69091b5f114112aa460105%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.