Roundup Tracker - Issues

Issue 1024860

classification
wrong env used in client.py
Type: Severity: normal
Components: None Versions:
process
Status: closed rejected
:
: : richard, scusack
Priority: normal :

Created on 2004-09-09 04:03 by scusack, last changed 2004-09-09 04:03 by scusack.

Messages
msg1444 Author: [hidden] (scusack) Date: 2004-09-09 04:03
Hi,

shouldn't line 292 in cgi/client.py be:

            user = self.env.get( 'REMOTE_USER', None )

instead of:

	    user = os.getenv('REMOTE_USER')

I have been writing a wrapper so that roundup can be
plugged into a quixote application and when using
client.py as a base for passing on requests I put the
remote_user that I have already validated in my
application into the environment before passing it onto
roundup.

The os.getenv() doesn't see my modified environment so
passing on the validated user was failing.
msg1445 Author: [hidden] (richard) Date: 2004-09-09 04:24
Logged In: YES 
user_id=6405

The self.env attribute is what is passed in to the Client() 
initialisation as the "env" argument. In some cases, that 
argument may be os.environ, in others it is not. 
 
Excited to heard that there might be a quixote interface! 
 
If you have any questions, please join up the roundup-devel 
mailing list. 
History
Date User Action Args
2004-09-09 04:03:41scusackcreate