openhatch

Issue474

Title Visiting a bad /bugs URL says an error has occurred
Milestone later Priority bug
Waiting On Status chatting
Superseder Nosy List egor83, jesstess, paulproteus, pythonian4000
Assigned To Keywords

Created on 2011-07-12.20:03:49 by jesstess, last changed 2013-03-19.04:13:56 by Coffeeman.

Messages
msg3619 (view) Author: Coffeeman Date: 2013-03-19.04:13:56
Related to 827?
msg2446 (view) Author: paulproteus Date: 2011-09-01.04:44:15
Here is the exception that Roundup raises:

EXCEPTION AT Thu Sep  1 04:40:30 2011
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/roundup/scripts/roundup_server.py", line
192, in run_cgi
    self.inner_run_cgi()
  File "/usr/lib/pymodules/python2.6/roundup/scripts/roundup_server.py", line
368, in inner_run_cgi
    tracker.Client(tracker, self, env).main()
  File "/usr/lib/pymodules/python2.6/roundup/cgi/client.py", line 368, in main
    self.db.close()
  File "/usr/lib/pymodules/python2.6/roundup/backends/rdbms_common.py", line
1334, in close
    self.sql_close()
  File "/usr/lib/pymodules/python2.6/roundup/backends/back_sqlite.py", line 307,
in sql_close
    self.conn.close()
OperationalError: unable to close due to unfinalised statements

I added some logging to the Roundup-Django login integration code, and it
doesn't seem to be the cause of the problem.

For now, I will just push this forward to the future. It would be good to be
find out what the minimal adjustments to stock Roundup you need to make to be
able to reproduce this bug. I can't seem to reproduce it on other Roundup
instances I find lying around the web.
msg2229 (view) Author: paulproteus Date: 2011-07-19.13:03:04
egor83, you asked for more clarification on IRC (although I missed you).

What I'm trying to say is that /bugs/ is not handled by the main openhatch code
that we store on Gitorious at http://gitorious.org/openhatch/oh-mainline .

It's handled by Roundup's code, which we happen to have installed on the server
through the Debian package.

So the bug fix actually would occur in a different codebase than the main
OpenHatch one, and I know the Roundup codebase less well. That's what I mean by
"it's in Roundup".

Sorry that that was unclear. Do my earlier remarks make more sense now?
msg2226 (view) Author: paulproteus Date: 2011-07-17.21:17:02
It is bitesize, except that it's in Roundup, which is somewhat hard to
understand. I figure that people shouldn't be directed to it as newcomers unless
they understand that.

But if you *do* understand that, then yes!
msg2224 (view) Author: egor83 Date: 2011-07-17.21:05:36
I think it's bitesize, isn't it?
msg2181 (view) Author: jesstess Date: 2011-07-12.20:03:48
If I visit http://openhatch.org/bugs/foo while not logged in, I get a 400 and

"Tue Jul 12 19:59:05 2011: An error occurred. Please check the server log for more infomation."

Visiting logged in, I get

"""
Error response

Error code 404.

Message: /bugs/foo.

Error code explanation: 404 = Nothing matches the given URI.
"""

They should probably both get a 404, and better yet get a nice styled page for it, a la 
http://openhatch.org/foo.
History
Date User Action Args
2013-03-19 04:13:56Coffeemansetmessages: + msg3619
2011-09-01 04:44:16paulproteussetnosy: + pythonian4000
messages: + msg2446
milestone: 0.11.07 -> later
2011-07-19 13:03:05paulproteussetmessages: + msg2229
2011-07-17 21:17:03paulproteussetmessages: + msg2226
2011-07-17 21:05:37egor83setstatus: unread -> chatting
nosy: + egor83
messages: + msg2224
2011-07-12 20:03:49jesstesscreate