Hey guys, I ran into a problem with my pylons project which combines repoze.who and pylons. If an (http) error occured the repoze.who metadata set in the environ became unreliable (these are sqlalchemy orm instances). I tracked it down to the fact that StatusCodeRedirect copies the old environ after it was used by the previous request, resulting in a environ where repoze.who already set data and all kind of things went wrong :-) The proper way is to copy the environ dict in the middleware before calling the next wsgiapp, this does mean that for every request a environ.copy() statement will be executed.
The solution i now use is to delete the keys AUTH_TYPE and REMOTE_* from the environ before calling the error controller, although I don't think that this is the proper solution. Any thoughts? Regards, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en -~----------~----~----~----~------~----~------~--~---