Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 659782

Summary: xdg-email cannot create attachments for thunderbird
Product: Red Hat Enterprise Linux 6 Reporter: Matthew Mosesohn <mmosesoh>
Component: xdg-utilsAssignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: jhunt, msanders, pkovar, tpelka, tsmetana
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: xdg-utils-1.0.2-17.20091016cvs.el6 Doc Type: Bug Fix
Doc Text:
Previously, a trailing comma was passed in the "thunderbird" command. As a result, Thunderbird was unable to open a compose window. With this update, the trailing comma has been stripped so that Thunderbird now works properly.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-31 09:17:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Mosesohn 2010-12-03 16:43:31 UTC
Description of problem:
Related bug for a different distro can be found here:
https://bugs.launchpad.net/simple-scan/+bug/515386

If you try to create an email using xdg-email with an attachment, Thunderbird will display an error "An error occurred while creating a message compose window.  Please try again"

What confuses me is if you do ps waux | grep compose     you will see this:
mmosesoh 14904  0.0  0.0 106008  1264 pts/9    S+   11:38   0:00 /bin/sh /usr/lib64/thunderbird-3.1/thunderbird -compose attachment='file:///tmp/logo.png,'
mmosesoh 14918  0.0  0.0 106008  1320 pts/9    S+   11:38   0:00 /bin/sh /usr/lib64/thunderbird-3.1/run-mozilla.sh /usr/lib64/thunderbird-3.1/thunderbird-bin -compose attachment='file:///tmp/logo.png,'
mmosesoh 14922 10.1  1.4 680368 58632 pts/9    Sl+  11:38   0:00 /usr/lib64/thunderbird-3.1/thunderbird-bin -compose attachment='file:///tmp/logo.png,'
mmosesoh 14933  0.0  0.0 103152   828 pts/12   S+   11:38   0:00 grep compose

If I copy and paste the command run on PID 14904, it will run properly with the compose window:
/bin/sh /usr/lib64/thunderbird-3.1/thunderbird -compose attachment='file:///tmp/logo.png,'

Version-Release number of selected component (if applicable):
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
thunderbird-3.1.3-1.el6.x86_64

Comment 2 RHEL Program Management 2011-01-07 15:39:13 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 3 Tomáš Bžatek 2011-01-21 16:57:39 UTC
This upstream commit might help: http://cgit.freedesktop.org/portland/xdg-utils/commit/?id=a17733d3865584fda5b191f9061468d1c613271e

Comment 8 Tomáš Bžatek 2011-08-01 13:18:04 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: trailing comma was passed in the thunderbird command line

Consequence: Thunderbird was unable to open a compose window

Fix: trailing comma is now stripped

Result: Thunderbird now works properly

Comment 9 Petr Kovar 2011-08-03 13:15:33 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,7 +1 @@
-Cause: trailing comma was passed in the thunderbird command line
+Previously, a trailing comma was passed in the "thunderbird" command. As a result, Thunderbird was unable to open a compose window. With this update, the trailing comma has been stripped so that Thunderbird now works properly.-
-Consequence: Thunderbird was unable to open a compose window
-
-Fix: trailing comma is now stripped
-
-Result: Thunderbird now works properly

Comment 13 errata-xmlrpc 2011-08-31 09:17:55 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1229.html