#34482: Unable to access "non-picklable" attributes of empty HttpRequest and
HttpResponse objects after shallow copy.
---------------------------------+-----------------------------------------
Reporter: Anvesh Mishra | Owner: Anvesh Mishra
Type: Bug | Status: assigned
Component: HTTP handling | Version: 4.2
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
---------------------------------+-----------------------------------------
Description changed by Anvesh Mishra:
Old description:
> Trying to access the non-picklable attributes of `HttpRequest` object
> 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'
> }}}
New description:
Trying to access the non-picklable attributes of `HttpRequest` and
`HttpResponse`object 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'
}}}
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34482#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018771b120b4-b7663aa3-e591-4c8c-9357-64130865fa18-000000%40eu-central-1.amazonses.com.