Bug 771096

Summary: Bug report description does not get opened correctly in Firefox
Product: [Fedora] Fedora Reporter: Robin Green <greenrd>
Component: xdg-utilsAssignee: Rex Dieter <rdieter>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: abrt-devel-list, bugzilla, dvlasenk, dwalsh, jmoskovc, kklic, mgrepl, mlichvar, mmilata, mnowak, mtoman, npajkovs, pertusus, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-15 02:30:37 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 Robin Green 2012-01-01 10:28:11 UTC
Description of problem:
sealert gives you the opportunity to view the detailed description that will be submitted with the bug report. But this doesn't work - Firefox doesn't understand the file URL passed to it, maybe because it contains ':' characters.

Version-Release number of selected component (if applicable):
setroubleshoot-3.0.41-1.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Generate a selinux alert
2. Click Troubleshoot
3. Click Report bug
4. Double click on "click here to view/edit" (the description line)
  
Actual results:
Firefox opens a new window with 3 tabs, none of which resolve to anything sensible. It is clear to me that for some reason, the filename has been interpreted as 3 separate tabs to load, instead of one single filename.

Expected results:
Firefox should open the file /tmp/abrt-tmp-2012-01-01-10:13:04-3742/description

Additional info:
firefox-9.0.1-1.fc16.x86_64
It does not matter whether firefox is already running or not.

Comment 1 Robin Green 2012-01-01 10:37:35 UTC
reassigning to libreport, which contains the actual binary that does this.
libreport-2.0.8-3.fc16.x86_64

Comment 2 Robin Green 2012-01-01 12:03:14 UTC
Workaround (for KDE users at least): quit and re-run as

sealert -S

This will make xdg-open notice that it's running in KDE, so it will use kde-open instead of firefox to open the file.

Comment 3 Jiri Moskovcak 2012-01-03 12:52:36 UTC
Seems more like a problem in xdg-open or firefox. -> reassigning to xdg-open.

Comment 4 Haakon Riiser 2012-10-29 22:13:12 UTC
xdg-open has been broken in Fedora for *months* because it sets IFS=: to split colon-separated values. This would be fine if xdg-open protected the URL argument from field splitting by wrapping $1 in double quotes, but it doesn't. Consequently, http://example.com gets split into "http" and "//example.com". The fix is trivial:

http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=d1cb061c85388cb9e87a3ea902061d7b94726971

See also https://bugs.freedesktop.org/show_bug.cgi?id=45859

Please apply this patch soon. Any application that uses xdg-open cannot open URLs now (e.g., LibreOffice).

Comment 5 Rex Dieter 2012-10-29 22:54:19 UTC
ok, (though that patch only applies if you're using a "generic" environment, and not one that provides a better tool, like kde, gnome, etc...)

Comment 6 Fedora Update System 2012-10-29 23:07:19 UTC
xdg-utils-1.1.0-0.14.20120809git.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/xdg-utils-1.1.0-0.14.20120809git.fc17

Comment 7 Fedora Update System 2012-10-29 23:07:36 UTC
xdg-utils-1.1.0-0.14.20120809git.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/xdg-utils-1.1.0-0.14.20120809git.fc16

Comment 8 Haakon Riiser 2012-10-30 12:47:59 UTC
Thanks, this one works for me (fc17).

Comment 9 Fedora Update System 2012-10-31 02:58:25 UTC
Package xdg-utils-1.1.0-0.14.20120809git.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xdg-utils-1.1.0-0.14.20120809git.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17316/xdg-utils-1.1.0-0.14.20120809git.fc16
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-11-15 02:30:40 UTC
xdg-utils-1.1.0-0.14.20120809git.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.