#8393: Test client handler should call set_script_prefix
---------------------------------------+------------------------------------
Reporter: jcassee | Owner: nobody
Status: closed | Milestone: 1.0
Component: Unit test system | Version: SVN
Resolution: worksforme | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------+------------------------------------
Changes (by jacob):
* status: new => closed
* resolution: => worksforme
Comment:
Looking at `urlresolvers.get_script_prefix`, I can't see how it could fail
-- if the prefix isn't set, it'll just return `/` anyway. Without any more
details -- and psudocode won't cut it -- I can't verify this is actually a
bug. I suspect it's a problem in your code.
I'll take a shot in the dark, I suspect that it's a matter of you not
cleaning up after yourself in your middleware: if you modify the script
prefix in `process_request`, you need to clean it up at some point during
the response. Otherwise the script prefix will keep growing, and that's
broken.
--
Ticket URL: <http://code.djangoproject.com/ticket/8393#comment:6>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---