Bug 1010604

Summary: Bug report facility in Frescobaldi is broken
Product: [Fedora] Fedora Reporter: amreg <amreg.redhat>
Component: frescobaldiAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: brendan.jones.it, gwync
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: frescobaldi-2.0.10-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-11 23:59:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description amreg 2013-09-21 21:49:01 UTC
Description of problem:
When trying to report a bug, an error pop-up windows shows.

Version-Release number of selected component (if applicable):
frescobaldi-2.0.9-1.fc19

How reproducible:
Always.

Steps to Reproduce:
1. Open the menu "Help", and select "Report a bug...".
2.
3.

Actual results:
A pop-up shows with the following title "An internal error has occurred" and the following text:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/frescobaldi_app/mainwindow.py", line 733, in reportBug
    "Please describe the issue or feature request.\n"
  File "/usr/lib/python2.7/site-packages/frescobaldi_app/bugreport.py", line 75, in email
    body = "{0}: {1}\n\n{2}\n\n{3}\n\n".format(info.appname, info.version, versionInfoString(), body)
  File "/usr/lib/python2.7/site-packages/frescobaldi_app/bugreport.py", line 69, in versionInfoString
    "OS: {osname}".format(**versionInfo()))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 56: ordinal not in range(128)

Expected results:
Bug reported.

Additional info:
The above pop-up window has an "Email bug report" button. Clicking it just pops up an additional (and identical) error pop-up window on top of the previous one.

The bug I intended to report is the following:
"I can add a template (using menu "File/New from template/Manage templates..."), but when I try to edit it later, that added template is deleted when I close the edit window. In other words : editing an added template destroys it."

Comment 1 Brendan Jones 2013-09-30 05:12:23 UTC
This is due to the Fedora release name Schoedinger's Cat. Of you replace the o umlaut in /etc/redhat-release with a normal 'o' it should be OK. In any case it just opens up a new email form with the following (replace the kernel with output from uname -a):

To: info

Subject: [Frescobaldi 2.0.9] 

Body: 

Frescobaldi: 2.0.9

Python: 2.7.5 -- Qt: 4.8.4 -- PyQt4: 4.10.1 -- sip: 4.14.6
OS: Linux-3.10.0-0.rc5.git0.2.fc20.x86_64-x86_64-with-fedora-19-Schrodinger's_Cat

Please describe the issue or feature request.
Provide as much information as possible.

I'm not sure this is worth filing upstream.

Comment 2 Brendan Jones 2013-09-30 05:12:53 UTC
However, when you email your bug be sure to mention this as well

Comment 3 amreg 2013-10-01 19:58:52 UTC
(In reply to Brendan Jones from comment #1)
> This is due to the Fedora release name Schoedinger's Cat. Of you replace the
> o umlaut in /etc/redhat-release with a normal 'o' it should be OK.

In fact, not only should the "o-umlaut" be replaced by a "standard o" (or maybe "oe"), but also the quote between "Schrodinger" and "s" should be replaced by an **ASCII** quote...

After doing both changes it works. Thanks.

Comment 4 Gwyn Ciesla 2013-10-03 13:52:09 UTC
Still present in 2.0.10, but I've crafted a patch.

Does this work for you?  Does for me.

http://fedorapeople.org/~limb/frescobaldi-2.0.10-2.fc21.noarch.rpm

Comment 5 Brendan Jones 2013-10-03 14:31:57 UTC
Works for me in F19. If you post a patch I'll push out an update

Comment 6 Gwyn Ciesla 2013-10-03 14:39:43 UTC
Thanks, but it's already ready to go in my git clone.  Builds are in progress in koji now.

Comment 7 Fedora Update System 2013-10-03 14:47:36 UTC
frescobaldi-2.0.10-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/frescobaldi-2.0.10-2.fc19

Comment 8 Fedora Update System 2013-10-03 14:47:51 UTC
frescobaldi-2.0.10-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/frescobaldi-2.0.10-2.fc20

Comment 9 Fedora Update System 2013-10-04 01:53:25 UTC
Package frescobaldi-2.0.10-2.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing frescobaldi-2.0.10-2.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-18215/frescobaldi-2.0.10-2.fc19
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2013-10-11 23:59:45 UTC
frescobaldi-2.0.10-2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2013-10-12 04:22:01 UTC
frescobaldi-2.0.10-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.