View Issue Details

IDProjectCategoryView StatusLast Update
0000536ascendpygtk guipublic2013-02-26 13:42
ReporterArjun 
Assigned Tosreenatha 
PrioritynormalSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
PlatformLinuxOSUbuntuOS Version11.10
Product Version0.9.7 
Target Version0.9.9Fixed in Version 
Summary0000536: During error encountered there should be a report bug button
Descriptionwhenever an error occurs a window pops with three buttons:
Details
Close
Quit

I think there should also be a button report bug which an click directly redirects to this page and the bug could be reported
TagsNo tags attached.

Relationships

Activities

sreenatha

2012-04-04 21:16

developer   ~0000840

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'.

sreenatha

2012-04-04 21:49

developer  

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)

sreenatha

2012-04-04 21:50

developer   ~0000841

submitted patch

john

2012-04-05 00:25

administrator   ~0000842

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?

sreenatha

2012-04-05 00:44

developer   ~0000843

Last edited: 2012-04-05 00:46

View 2 revisions

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

john

2012-04-05 03:25

administrator   ~0000845

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?

john

2012-05-18 05:55

administrator   ~0000882

It would be desirable to review how this works in the context of the Ubuntu built-in crash recovery/bug reporting tool, as well.

john

2013-02-26 13:30

administrator   ~0000953

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?

Issue History

Date Modified Username Field Change
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