* cc: Florian Apolloner, Anssi Kääriäinen (added)
Comment:
I'm not sure why we should treat 503 differently. IMO, we could reconsider
avoiding session saving when status code > 500 🤔
PS. Do not reopen tickets without further explanation.
--
Ticket URL: <https://code.djangoproject.com/ticket/34173#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by SessionIssue):
Replying to [comment:3 Mariusz Felisiak]:
> I'm not sure why we should treat 503 differently. IMO, we could
reconsider avoiding session saving when status code > 500 🤔
>
> PS. Do not reopen tickets without further explanation.
That would fix the problem and seems like a convenient solution to me.
Thanks a lot! 😁
--
Ticket URL: <https://code.djangoproject.com/ticket/34173#comment:4>
* type: New feature => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Happy to look at a patch (with tests) adjusting the check to `if
response.status_code >= 500:`
--
Ticket URL: <https://code.djangoproject.com/ticket/34173#comment:5>
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34173#comment:6>
* owner: nobody => Abhinav Yadav
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34173#comment:7>
Comment (by SessionIssue):
Replying to [comment:5 Carlton Gibson]:
> Happy to look at a patch (with tests) adjusting the check to `if
response.status_code >= 500:`
Is this a patch we can expect to see in 3.2 (LTS), or will this only be
patched in the upcoming 4.2 LTS?
Thanks in advance.
--
Ticket URL: <https://code.djangoproject.com/ticket/34173#comment:8>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/16326 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34173#comment:9>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34173#comment:10>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"17472c3304050fbbf7a65976ab7b392184d081d1" 17472c3]:
{{{
#!CommitTicketReference repository=""
revision="17472c3304050fbbf7a65976ab7b392184d081d1"
Fixed #34173 -- Skipped saving sessions on 5xx responses.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34173#comment:11>