#8658: Per request environment not cleaned between requests with mod_python
-----------------------------------+----------------------------------------
Reporter: edevil | Owner: nobody
Status: new | Milestone: 1.0
Component: Core framework | Version: 1.0-beta-1
Keywords: modpython environment | Stage: Unreviewed
Has_patch: 0 |
-----------------------------------+----------------------------------------
I'm using a single sign-on system called Shibboleth which is implemented
via an Apache module that populates the request environment with
information about the logged-in user (if there is one) to the underlying
application, Django in this case.
What I'm seeing is, when a logged-in user appears, the vars are set and I
can access them in the views with os.environ[VAR]. After that, all
requests remain with those vars set, even if the Shibboleth module does
not set them in the request environment.
I think this is because of this line in the modpython handler:
{{{
os.environ.update(req.subprocess_env)
}}}
This adds the vars to the environ but does not clear them if they are not
there. Maybe a copy of the original environment should be kept and
restored after the request is served. Or is there a way to access the
req.subprocess_env in a view?
--
Ticket URL: <http://code.djangoproject.com/ticket/8658>
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
-~----------~----~----~----~------~----~------~--~---