Skip to content

Commit ee6b9aa

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 3c7f8ba commit ee6b9aa

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
@@ -12,6 +12,7 @@ Fixed:
1212
- fixed -g arg to roundup-server (sf bug 973946)
1313
- better roundup-server usage string (sf bug 973352)
1414
- include "context" always, as documented (sf bug 965447)
15+
- fixed REMOTE_USER (external HTTP Basic auth) (sf bug 977309)
1516

1617

1718
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.176.2.1 2004-05-27 21:52:44 richard Exp $
1+
# $Id: client.py,v 1.176.2.2 2004-06-22 23:36:49 richard Exp $
22

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

287+
user = 'anonymous'
288+
287289
# first up, try the REMOTE_USER var (from HTTP Basic Auth handled
288290
# by a front-end HTTP server)
289291
try:
@@ -293,7 +295,6 @@ def determine_user(self):
293295

294296
# look up the user session cookie (may override the REMOTE_USER)
295297
cookie = Cookie.SimpleCookie(self.env.get('HTTP_COOKIE', ''))
296-
user = 'anonymous'
297298
if (cookie.has_key(self.cookie_name) and
298299
cookie[self.cookie_name].value != 'deleted'):
299300

0 commit comments

Comments
 (0)