Skip to content

Commit 0c5fb00

Browse files
author
Richard Jones
committed
have roundup server pass though the cause of a "403 Forbidden" response
1 parent 6c01a7e commit 0c5fb00

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Fixed:
77
- typo in roundup/instance.py
88
- missing CRLF var in rfc822.py (sf patch 949471)
99
- fix user creation page
10+
- have roundup server pass though the cause of a "403 Forbidden" response
1011

1112

1213
2004-05-06 0.7.0

doc/upgrading.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,40 @@ Please read each section carefully and edit your tracker home files
66
accordingly. Note that there is information about upgrade procedures in the
77
`administration guide`_.
88

9+
If a specific version transition isn't mentioned here (eg. 0.6.7 to 0.6.8)
10+
then you don't need to do anything. If you're upgrading from 0.5.6 to
11+
0.6.8 though, you'll need to check the "0.5 to 0.6" and "0.6.x to 0.6.3"
12+
steps.
13+
914
.. contents::
1015

16+
Migrating from 0.7.0 to 0.7.1
17+
=============================
18+
19+
0.7.1 Permission assignments
20+
----------------------------
21+
22+
If you allow anonymous access to your tracker, you might need to assign
23+
some additional View (or Edit if your tracker is that open) permissions
24+
to the "anonymous" user. To do so, find the code in your ``dbinit.py`` that
25+
says::
26+
27+
for cl in 'issue', 'file', 'msg', 'query', 'keyword':
28+
p = db.security.getPermission('View', cl)
29+
db.security.addPermissionToRole('User', p)
30+
p = db.security.getPermission('Edit', cl)
31+
db.security.addPermissionToRole('User', p)
32+
for cl in 'priority', 'status':
33+
p = db.security.getPermission('View', cl)
34+
db.security.addPermissionToRole('User', p)
35+
36+
Add add a line::
37+
38+
db.security.addPermissionToRole('Anonymous', p)
39+
40+
next to the existing ``'User'`` lines for the Permissions you wish to
41+
assign to the anonymous user.
42+
1143

1244
Migrating from 0.6 to 0.7
1345
=========================

roundup/scripts/roundup_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
20-
$Id: roundup_server.py,v 1.46 2004-04-20 21:57:16 richard Exp $
20+
$Id: roundup_server.py,v 1.46.2.1 2004-05-09 23:41:13 richard Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -94,8 +94,8 @@ def run_cgi(self):
9494
self.inner_run_cgi()
9595
except client.NotFound:
9696
self.send_error(404, self.path)
97-
except client.Unauthorised:
98-
self.send_error(403, self.path)
97+
except client.Unauthorised, message:
98+
self.send_error(403, '%s (%s)'%(self.path, message))
9999
except:
100100
exc, val, tb = sys.exc_info()
101101
if hasattr(socket, 'timeout') and isinstance(val, socket.timeout):

0 commit comments

Comments
 (0)