Bug 1171366

Summary: "Notify Admin" doesn't work
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: setroubleshootAssignee: Petr Lautrbach <plautrba>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dwalsh, kevin, mgrepl, mvanross, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-02 15:08:23 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:
Embargoed:
Bug Depends On: 983150    
Bug Blocks:    
Attachments:
Description Flags
Libreoffice presentation none

Description Ralf Corsepius 2014-12-06 03:47:55 UTC
Description of problem:

When an SEAlert occurs, the sealert browser offers a "Notify Admin" button.

When pressing this button, I am seeing a button telling me
"Failed to execute default Mail Reader.
Input/output error
[Close]
"

Version-Release number of selected component (if applicable):
setroubleshoot-3.2.20-3.fc21.x86_64

How reproducible:
Always


Actual results:
c.f. above.

Expected results:
Function.

Additional info:
- I am using xfce4 and am using "Mozilla Thunderbird" as my preferred Mail Reader.
- In my syslog, I found this, which I presume to be related to this issue:
...
Dec 06 04:41:17 beck org.fedoraproject.Setroubleshootd[1464]: TypeError: cannot concatenate 'str' and 'list' objects
Dec 06 04:41:17 beck org.fedoraproject.Setroubleshootd[1464]: command += ",subject='" + subject + "'"
Dec 06 04:41:17 beck org.fedoraproject.Setroubleshootd[1464]: File "/usr/lib64/xfce4/exo-1/exo-compose-mail-1", line 83, in <module>
Dec 06 04:41:17 beck org.fedoraproject.Setroubleshootd[1464]: Traceback (most recent call last):
Dec 06 04:41:17 beck org.fedoraproject.Setroubleshootd[1464]: TypeError: cannot concatenate 'str' and 'list' objects
Dec 06 04:41:17 beck org.fedoraproject.Setroubleshootd[1464]: command += ",subject='" + subject + "'"
Dec 06 04:41:17 beck org.fedoraproject.Setroubleshootd[1464]: File "/usr/lib64/xfce4/exo-1/exo-compose-mail-1", line 98, in <module>
Dec 06 04:41:17 beck org.fedoraproject.Setroubleshootd[1464]: Traceback (most recent call last):
...

Seems to me as if setroubleshoot has problems in interacting with xfce4.

Comment 1 Mark van Rossum 2014-12-11 00:23:59 UTC
I have encountered this using a powerpoint presentation, opened in Libreoffice.

This presentation contained the mailto command.

Running XFCE and thunderbird as well.

Comment 2 Mark van Rossum 2014-12-11 00:26:49 UTC
It actually also throws an error on native Libreoffice presentations.
use
Insert-> Hyperlink email
to create one, and then show the presentation.

Comment 3 Mark van Rossum 2014-12-11 09:38:12 UTC
So this might be an exo bug.

Comment 4 Mark van Rossum 2014-12-11 09:39:49 UTC
Created attachment 967168 [details]
Libreoffice presentation

This presentattion gives an error in XFCE when you run it, and click the text.

Can someone try this in something else than XFCE?

Comment 5 Ralf Corsepius 2014-12-14 12:12:39 UTC
(In reply to Mark van Rossum from comment #3)
> So this might be an exo bug.

Confirmed - It is. 

The origin of this bug is in Red Hat's exo-compose-mail-1 (aka. mailtoparse.py). Replacing this stuff with upstream's exo-compose-mail-1 fixes this issue. 

I am going to file a bug against exo.

Comment 6 Ralf Corsepius 2014-12-14 12:38:13 UTC
There seems to be BZ on this topic open: RHBZ#983150.

Comment 7 Petr Lautrbach 2015-06-02 15:08:23 UTC
It works in Fedora 22 with exo-0.10.6-1.fc22.x86_64 and setroubleshoot-3.2.24-1.fc22.x86_64