Opened 15 months ago

Closed 15 months ago

Last modified 15 months ago

#31864 closed Bug (fixed)

Session data cannot be decoded during the transition to Django 3.1.

Reported by: Mariusz Felisiak Owned by: Mariusz Felisiak
Component: contrib.sessions Version: 3.1
Severity: Release blocker Keywords:
Cc: Markus Holtermann, Florian Apolloner, Carlton Gibson, אורי Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In d4fff711d4c97356bd6ba1273d2a5e349326eb5f (#31274) we've changed format for session data, that's why setting DEFAULT_HASHING_ALGORITHM to 'sha1' is not enough to support running multiple instances of the same project during the transition to Django 3.1.

We could use the legacy encode() when DEFAULT_HASHING_ALGORITHM == 'sha1' (it's a bit hacky).

Change History (6)

comment:1 Changed 15 months ago by Mariusz Felisiak

Cc: Markus Holtermann Florian Apolloner Carlton Gibson אורי added
Has patch: set

comment:2 Changed 15 months ago by Carlton Gibson

Triage Stage: UnreviewedAccepted

comment:3 Changed 15 months ago by GitHub <noreply@…>

Resolution: fixed
Status: assignedclosed

In 99abfe8:

Fixed #31864 -- Fixed encoding session data during transition to Django 3.1.

Thanks אורי for the report.

comment:4 Changed 15 months ago by Mariusz Felisiak <felisiak.mariusz@…>

In c21bbe08:

[3.1.x] Fixed #31864 -- Fixed encoding session data during transition to Django 3.1.

Thanks אורי for the report.
Backport of 99abfe8f4d3caebcd73548f5bf9e4755bdfed318 from master

comment:5 Changed 15 months ago by Carlton Gibson <carlton@…>

In b2b0711b:

Refs #31864 -- Doc'd that DEFAULT_HASHING_ALGORITHM requires 3.1.1+ in release notes.

comment:6 Changed 15 months ago by Carlton Gibson <carlton.gibson@…>

In cdfdbb34:

[3.1.x] Refs #31864 -- Doc'd that DEFAULT_HASHING_ALGORITHM requires 3.1.1+ in release notes.

Backport of b2b0711b555fa292751763c2df4fe577c396f265 from master

Note: See TracTickets for help on using tickets.
Back to Top