Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#33754 closed Bug (fixed)

Request body is closed prematurely by the ASGI handler

Reported by: Jonas Lundberg Owned by: Jonas Lundberg
Component: HTTP handling Version: 4.1
Severity: Release blocker Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The following PR https://github.com/django/django/pull/15675/ introduces I/O operation on closed file., due to closing the ASGI request body before getting the response, e.g. accessing request.body in a view.

Change History (6)

comment:2 by Jonas Lundberg, 2 years ago

Has patch: set
Owner: changed from nobody to Jonas Lundberg
Status: newassigned

comment:3 by Mariusz Felisiak, 2 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:4 by Mariusz Felisiak, 2 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Mariusz Felisiak <felisiak.mariusz@…>, 2 years ago

Resolution: fixed
Status: assignedclosed

In 6df6c1b:

[4.1.x] Fixed #33754 -- Fixed crash with prematurely closed ASGI request body.

Regression in 441103a04d1d167dc870eaaf90e3fba974f67c93.

Backport of f1e0fc645bb0b2c15d1510c9a8501743297dec9d from main

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 2 years ago

In f1e0fc6:

Fixed #33754 -- Fixed crash with prematurely closed ASGI request body.

Regression in 441103a04d1d167dc870eaaf90e3fba974f67c93.

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