#34561: "DatabaseError: Forced update did not affect any rows" on SessionStore
save()
--------------------------------------------+------------------------
Reporter: danielfbnunes | Owner: nobody
Type: Bug | Status: new
Component: contrib.sessions | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------------+------------------------
After a user login while working with [https://github.com/mozilla/mozilla-
django-oidc mozilla-django-oidc], I came across this "DatabaseError:
Forced update did not affect any rows" error on
[https://github.com/mozilla/mozilla-django-
oidc/blob/71e4af8283a10aa51234de705d34cd298e927f97/mozilla_django_oidc/views.py#L112
request.session.save()].
This looks to me like a race condition where the session doesn't exist but
[https://github.com/django/django/blob/e1bbbbe6acb69e755554088bc573cc1835673209/django/contrib/sessions/backends/db.py#L87
we still try to update it].
--
Ticket URL: <https://code.djangoproject.com/ticket/34561>
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/010701880efcf753-f9e6bcae-4e44-4744-bbe0-77b45ee38e46-000000%40eu-central-1.amazonses.com.