Opening of magnet links broken

Bug #1453174 reported by Felix Eckhofer on 2015-05-08
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Fix Released
gvfs (Ubuntu)

Bug Description

* Impact
some urls are not correctly handled

* Test case
$ xdg-open "magnet:?xt=urn:btih:9BE2..."

that should open a working dialog and not an error one

* Regression potential
check that the desktop handling of urls is correct (using xdg-open or click on e.g in website handlers in about dialogs)


When clicking on a magnet link, transmission-remote-gtk always displays the error "invalid or corrupt torrent file". This seems to be caused by xdg-open slightly modifying the link:

$ xdg-open "magnet:?xt=urn:btih:9BE2..."

results in

$ transmission-remote-gtk "magnet:///?xt=urn:btih:9BE2..."

which causes the problem mentioned.

I'm using transmission-remote-gtk 1.1.1-1 from vivid.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in transmission-remote-gtk (Ubuntu):
status: New → Confirmed
Bert Vermeulen (biot) wrote :

In the Gnome and Unity desktop environments, xdg-open calls gvfs-open with the URL. However this is broken in the current version (1.24.1): see

The patch has been in master since May 2015, but it looks like Ubuntu's gvfs package is lagging behind. Even in Ubuntu 15.10 gvfs has not been upgraded. Looks like it's in 1.24.2, or the patch can be backported into Ubuntu.

Bert Vermeulen (biot) on 2015-09-27
affects: transmission-remote-gtk (Ubuntu) → gvfs (Ubuntu)
no longer affects: gvfs
Changed in gvfs (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Committed
Sebastien Bacher (seb128) wrote :

the bugfix version include the needed change has been uploaded to wily and vivid (waiting for review)

description: updated
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gvfs - 1.24.2-0ubuntu1

gvfs (1.24.2-0ubuntu1) wily; urgency=medium

  * New upstream version
    - udisks2: Fix a crash when unmounting (lp: #1500516)
    - udisks2: Handle libsecret errors properly to avoid a crash
      (lp: #1132250)
    - mtp: Copy mtime when pulling (lp: #1175947)
    - gvfs-open: Do not alter uris before use (lp: #1453174)

 -- Sebastien Bacher <email address hidden> Tue, 29 Sep 2015 11:48:31 +0200

Changed in gvfs (Ubuntu):
status: Fix Committed → Fix Released

Hello Felix, or anyone else affected,

Accepted gvfs into vivid-proposed. The package will build now and be available at in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at . Thank you in advance!

Changed in gvfs (Ubuntu Vivid):
status: New → Fix Committed
tags: added: verification-needed
Bert Vermeulen (biot) wrote :

Tested with 1.24.2-0ubuntu0.1 and magnet links now work fine, thanks.

tags: added: verification-done
removed: verification-needed
Adrien Anceau (adrien-anceau) wrote :

gvfs 1.24.2-0ubuntu0.1 fixes the issue for me too.

Changed in gvfs (Ubuntu Vivid):
importance: Undecided → High
tags: added: vivid
Bert Vermeulen (biot) on 2015-11-02
Changed in gvfs (Ubuntu Vivid):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for gvfs has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in gvfs:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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