This isn't really a "question"… but I'm not sure where to file bugs as the Redmine instance wasn't allowing me to file anything.
Easy way to see this happen on 0.7.43: Add a comment, try to upvote it yourself. It happens in a few other places too, but this is easy to duplicate.
Instead of returning the error "You can't upvote your own comments" there is an HTTP 500 error. Looking at the backtrace, the problem is that the PermissionDenied exception does not have a "messages" variable. The hacky way to fix this (and what I'm using right now) is to change utils/decorators.py:90 to
if isinstance(e, Exception) and hasattr(e, 'messages'):
I'm sure there's a better way, but this at least has fixed the issues so we don't have errors in production.
Thank you.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-06-09 20:40:42 -0500
Seen: 50 times
Last updated: Jun 14 '12
I can't see custom 500.html error page
VariableDoesNotExist 500.jinja.html b/c no RequestContext
Bug: Non-ascii URLs get mangled after updating interesting/ignored tags
Exceptions if apostrophe's in the title
Internal server error (jinja error?)
Why are ajax urls partly translated and partly not?
Internal Server Error when trying to edit personal pro
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.