Opened 20 months ago

Last modified 20 months ago

#34482 closed Bug

Unable to access "non-picklable" attributes of empty HttpRequest and HttpResponse objects after shallow copy. — at Version 3

Reported by: Anvesh Mishra Owned by: Anvesh Mishra
Component: HTTP handling Version: 4.2
Severity: Release blocker Keywords:
Cc: Mariusz Felisiak Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Anvesh Mishra)

Trying to access the non-picklable attributes of HttpRequest and HttpResponseobject after shallow copy leads to an AttributeError.
Example:

request = HttpRequest()
request_copy = copy(request)
match = request_copy.resolver_match

AttributeError: 'WSGIRequest' object has no attribute 'resolver_match'

Change History (3)

comment:1 by Mariusz Felisiak, 20 months ago

Severity: NormalRelease blocker
Summary: Unable to access non-picklable attributes of HttpRequest and HttpResponse objects after shallow copy.Unable to access "non-picklable" attributes of empty HttpRequest and HttpResponse objects after shallow copy.
Triage Stage: UnreviewedAccepted

Regressions in d7f5bfd241666c0a76e90208da1e9ef81aec44db and 6220c445c40a6a7f4d442de8bde2628346153963.

Thanks Márton Salomváry for the report.

comment:2 by Adam Johnson, 20 months ago

I opened #34484 for a report due to a related failure caused by the same patch.

comment:3 by Anvesh Mishra, 20 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top