Re: [Django] #34350: WSGIRequest crashes when "wsgi.input" is None. (was: Django 4.2a1 Breaks serverless WSGI lambda build : 'NoneType' object has no attribute 'read')

4 views
Skip to first unread message

Django

unread,
Feb 18, 2023, 1:25:08 AM2/18/23
to django-...@googlegroups.com
#34350: WSGIRequest crashes when "wsgi.input" is None.
------------------------------+--------------------------------------
Reporter: advl | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: 4.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* cc: Nick Pope (added)
* status: new => closed
* resolution: => invalid


Comment:

This is a
[https://docs.djangoproject.com/en/4.2/releases/4.2/#miscellaneous
documented] breaking change:

> ''"Manually instantiated `WSGIRequest` objects must be provided a file-
like object for `wsgi.input`. Previously, Django was more lax than the
expected behavior as specified by the WSGI specification."''

--
Ticket URL: <https://code.djangoproject.com/ticket/34350#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages