Opened 3 years ago
Last modified 3 years 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 )
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 , 3 years ago
| Severity: | Normal → Release 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: | Unreviewed → Accepted |
comment:2 by , 3 years ago
I opened #34484 for a report due to a related failure caused by the same patch.
comment:3 by , 3 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.
Regressions in d7f5bfd241666c0a76e90208da1e9ef81aec44db and 6220c445c40a6a7f4d442de8bde2628346153963.
Thanks Márton Salomváry for the report.