Skip to content

Commit 02ddc08

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 912a3cf commit 02ddc08

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Fixed:
1515
- use row locking in MySQL newid() (sf bug 1034211)
1616
- add sanity check for sort and group on same property (sf bug 1033477)
1717
- extend OTK and session table value cols to TEXT (sf bug 1031271)
18+
- fix lookup of REMOTE_USER (sf bug 1002923)
1819

1920

2021
2004-07-21 0.7.6

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Seb Brezel,
7474
Titus Brown,
7575
Godefroid Chapelle,
7676
Roch'e Compaan,
77+
Wil Cooley,
7778
Joe Cooper,
7879
Kelley Dagley,
7980
Paul F. Dubois,

roundup/cgi/client.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.176.2.4 2004-08-02 22:42:55 richard Exp $
1+
# $Id: client.py,v 1.176.2.5 2004-10-07 23:14:23 richard Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -284,14 +284,12 @@ def determine_user(self):
284284
self.clean_sessions()
285285
sessions = self.db.getSessionManager()
286286

287-
user = 'anonymous'
288-
289287
# first up, try the REMOTE_USER var (from HTTP Basic Auth handled
290288
# by a front-end HTTP server)
291-
try:
292-
user = os.getenv('REMOTE_USER')
293-
except KeyError:
294-
pass
289+
if self.env.has_key('REMOTE_USER'):
290+
user = self.env['REMOTE_USER']
291+
else:
292+
user = 'anonymous'
295293

296294
# look up the user session cookie (may override the REMOTE_USER)
297295
cookie = Cookie.SimpleCookie(self.env.get('HTTP_COOKIE', ''))

0 commit comments

Comments
 (0)