#24722: test client puts different results in response.context when nested view 
is
redirected with process_request vs process_response middleware
-------------------------------+--------------------------------------
     Reporter:  electricjay    |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:  test client    |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by electricjay):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> When using the test client:
>
> When a view which calls another view and middleware causes the inner view
> to redirect - the contents of '''results.context''' will be different
> depending on if it was '''process_request''', or '''process_response'''
> that initiated the redirect.
>
> Test case for this error is in gitub:
> https://github.com/electricjay/django/tree/test_client_nested_testcase
>
> This problem was discovered when creating the pull request
> https://github.com/django/django/pull/4574 for ticket #24696

New description:

 When using the test client:

 When a view calls another view and middleware causes the inner view to
 redirect - the contents of '''response.context''' will be different
 depending on if it was '''process_request''', or '''process_response'''
 that initiated the redirect.

 Test case for this error is in gitub:
 https://github.com/electricjay/django/tree/test_client_nested_testcase

 This problem was discovered when creating the pull request
 https://github.com/django/django/pull/4574 for ticket #24696

--

--
Ticket URL: <https://code.djangoproject.com/ticket/24722#comment:1>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.914944fadffaeba71a92e0daa6105a81%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to