summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8669be0)
raw | patch | inline | side by side (parent: 8669be0)
author | ber <ber@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 11 Aug 2011 19:21:26 +0000 (19:21 +0000) | ||
committer | ber <ber@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 11 Aug 2011 19:21:26 +0000 (19:21 +0000) |
Reported and fixed by Cédric Krier.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4643 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4643 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/cgi/client.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 1c5281d6af786777232e5efd6d7c3d6dd1ef6541..185d13216fc742978a31c1e4d8acfd73a632c27d 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
Features:
Fixed:
+issue2550715: IndexError when requesting non-existing file via http.
+ Reported and fixed by Cédric Krier. (Bernhard)
+
issue2550695: 'No sort or group' settings not retained when editing queries.
Reported and fixed by John Kristensen. Tested by Satchidanand Haridas.
(Bernhard)
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index ff4573abe175543943ffd07b6c4cf3ce6c6f8ffd..b4147d47923e46fb047baa225def472f13846fad 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
raise Unauthorised(self._("You are not allowed to view "
"this file."))
- mime_type = klass.get(nodeid, 'type')
+ try:
+ mime_type = klass.get(nodeid, 'type')
+ except IndexError, e:
+ raise NotFound(e)
# Can happen for msg class:
if not mime_type:
mime_type = 'text/plain'