View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000536||ascend||pygtk gui||public||2012-03-31 14:49||2013-02-26 13:42|
|Target Version||0.9.9||Fixed in Version|
|Summary||0000536: During error encountered there should be a report bug button|
|Description||whenever an error occurs a window pops with three buttons:|
I think there should also be a button report bug which an click directly redirects to this page and the bug could be reported
|Tags||No tags attached.|
Looked into the corresponding source code for error display.
It seems that the need for feedback regarding the error details has already been anticipated at the section of code from the lines 131-147 in 'gtkexcepthook.py'.
patchfile (1,057 bytes)
10c10 < import inspect, linecache, pydoc, sys, traceback, webbrowser --- > import inspect, linecache, pydoc, sys, traceback 127d126 < dialog.add_button (_("Report Bug"),3) 132,133c131,132 < #if trace == None: < # trace = analyse (exctyp, value, tb) --- > if trace == None: > trace = analyse (exctyp, value, tb) 136,149c135,145 < handle = webbrowser.get() < handle.open("http://bugs.ascend4.org/bug_report_page.php") < < # try: < # server = smtphost < # except NameError: < # server = 'localhost' < # < # message = 'From: buggy_application"\nTo: bad_programmer\nSubject: Exception feedback\n\n%s' % trace.getvalue() < # < # s = SMTP() < # s.connect (server) < # s.sendmail (email, (email,), message) < # s.quit() --- > try: > server = smtphost > except NameError: > server = 'localhost' > > message = 'From: buggy_application"\nTo: bad_programmer\nSubject: Exception feedback\n\n%s' % trace.getvalue() > > s = SMTP() > s.connect (server) > s.sendmail (email, (email,), message) > s.quit()
patchfile (1,057 bytes)
||sreenath, you have simply uncommented a few lines of code, but does it actually work? what should the smtp host be? does it work from behind a proxy? does it work on Windows, Mac, Linux?|
There is no need for the smtp module(unless the purpose is to send a mail). I've used the 'webbrowser' python module to remotely open the bug report page. I am behind a proxy and it seems to work fine for me.
I am using a Linux machine with Ubuntu 11.04
Before we can accept the patch I think we need to at least test with Windows 7/XP. And preferably with a couple of different browsers set as the user default eg chrome, firefox, IE.
Additionally, note that there is a fairly sophisticated bug reporting system in place in Fedora and I believe also with Ubuntu via Launchpad that can upload various kinds of stack traces, core dumps etc. Should we be thinking in terms of connecting with those?
Can the trace information be somehow pre-filled into Mantis by this process?
||It would be desirable to review how this works in the context of the Ubuntu built-in crash recovery/bug reporting tool, as well.|
||Currently, Mantis is not accepting anonymous bug reports, and so this implementation is failing. Might be better to host a web-to-email page on our server instead?|
|2012-03-31 14:49||Arjun||New Issue|
|2012-04-04 21:16||sreenatha||Note Added: 0000840|
|2012-04-04 21:49||sreenatha||File Added: patchfile|
|2012-04-04 21:50||sreenatha||Note Added: 0000841|
|2012-04-05 00:25||john||Note Added: 0000842|
|2012-04-05 00:44||sreenatha||Note Added: 0000843|
|2012-04-05 00:46||sreenatha||Note Edited: 0000843||View Revisions|
|2012-04-05 03:25||john||Note Added: 0000845|
|2012-05-18 05:18||sreenatha||Assigned To||=> sreenatha|
|2012-05-18 05:18||sreenatha||Status||new => assigned|
|2012-05-18 05:55||john||Note Added: 0000882|
|2013-02-26 13:30||john||Note Added: 0000953|
|2013-02-26 13:42||john||Target Version||=> 0.9.9|