Skip to content

Commit 0710671

Browse files
author
Richard Jones
committed
fixed REMOTE_USER (external HTTP Basic auth) [SF#977309]
1 parent 08dcb57 commit 0710671

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Fixed:
2525
- fixed Boolean values in postgresql (sf bugs 972546 and 972600)
2626
- fixed -g arg to roundup-server (sf bug 973946)
2727
- better roundup-server usage string (sf bug 973352)
28+
- fixed REMOTE_USER (external HTTP Basic auth) (sf bug 977309)
2829

2930

3031
2004-06-10 0.7.4

roundup/cgi/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.179 2004-06-15 09:19:49 a1s Exp $
1+
# $Id: client.py,v 1.180 2004-06-22 23:35:16 richard Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -364,6 +364,8 @@ def determine_user(self):
364364
self.clean_sessions()
365365
sessions = self.db.getSessionManager()
366366

367+
user = 'anonymous'
368+
367369
# first up, try the REMOTE_USER var (from HTTP Basic Auth handled
368370
# by a front-end HTTP server)
369371
try:
@@ -373,7 +375,6 @@ def determine_user(self):
373375

374376
# look up the user session cookie (may override the REMOTE_USER)
375377
cookie = self.cookie
376-
user = 'anonymous'
377378
if (cookie.has_key(self.cookie_name) and
378379
cookie[self.cookie_name].value != 'deleted'):
379380

0 commit comments

Comments
 (0)