Apport opens crash files as "file:///" urls

Bug #315966 reported by Daniel Hahler
8
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Binary package hint: apport

Since a while apport-gtk (and apport-qt IIRC) make Firefox open URLs like
  file:///ubuntu/+source/kdebase-workspace/+filebug/[hash]
after having sent data for a problem report.

Obviously Firefox displays an error then that the page cannot be displayed.

Replacing "file://" with "launchpad.net" fixes this and displays the uploaded data correctly.

This is with apport 0.126 on Ubuntu Jaunty, but happened since a while already (i.e. with previous apport versions).

Anders Kaseorg (andersk)
Changed in apport:
status: New → Confirmed
Revision history for this message
C de-Avillez (hggdh2) wrote :

I can confirm this behaviour. I am not sure what causes it. Brian suggested bug 314263 as a possibility (same results), but I could not reproduce. This has been happening, for me, for some days/weeks now.

Jaunty, fully up-to-date. It happened at least since apport-0.121.

Changed in apport:
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

I read in another bug report that this only happens with crash reports that are owned by root, can you confirm or deny that?

Revision history for this message
C de-Avillez (hggdh2) wrote :

I just tried with root, on an available crash report I had. It opened LP as file://...

Unfortunately, when I tried on an user crash, I got a pop-up stating libxc1 was obsolete, and apport refused to submit the report (I have just run 'sudo apt-get update). This puts me in a bind, right now: if I install the updated libxcb1, synaptic states it will remove pretty much the WHOLE of Gnome...

I will try to find something that does not depend on libxcb. Meanwhile, an user crash I submitted earlier today (i.e., non-root) worked fine, so I guess indeed this is tied to root.

Revision history for this message
Brian Murray (brian-murray) wrote :

Martin - can you comment as to whether or not this bug is in apport? Thanks!

Revision history for this message
Martin Pitt (pitti) wrote :

As it happens, Matt Zimmerman recently reported this very problem, but I was unable to reproduce as normal user.

I trawled through the apport code, and there was simply *nothing* using file:// URLs. However, I do use gnome-open URL, so a bug there would automatically apply to apport.

I can confirm that gnome-open rewrites URLs when being called as apport does for system crashes:

  sudo sudo -H -u '#1000' gnome-open https://launchpad.net/ubuntu

I. e. apport-gtk runs as root (first sudo), but calls gnome-open as the original user ($SUDO_USER) in order to get the real user's gconf preferences. This command opens file:///ubuntu in Firefox.

Thus I mark this as a duplicate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.