#17792: pickled object's __setstate__() ignores exceptions
----------------------------------+------------------------------------
     Reporter:  rpq__@…           |                    Owner:  nobody
         Type:  Bug               |                   Status:  new
    Component:  contrib.sessions  |                  Version:  1.3
     Severity:  Normal            |               Resolution:
     Keywords:  session pickle    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Changes (by timo):

 * component:  Uncategorized => contrib.sessions


Comment:

 It's not clear to me how we would fix this. How or why would a pickled
 object's `__setstate__` throw an exception? In
 `django.contrib.sessions.backends.base.SessionBase.decode` there's a
 `try/except` which catches all exceptions with the following comment:
 "ValueError, SuspiciousOperation, deserialization exceptions. If any of
 these happen, just return an empty dictionary (an empty session)."

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17792#comment:6>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.71cd6c0538e9202c9bad6003acfccf64%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to