deluge doesn't take magnet: links with slashes

Bug #1480295 reported by Chad Miller
This bug report is a duplicate of:  Bug #1453174: Opening of magnet links broken. Edit Remove
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
deluge (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Lately, chromium has been changing/breaking/normalizing/something magnet links from

magnet:?xt=urn:btih:HEX&dn=name&tr=url

into

magnet:///?xt=urn:btih:HEX&dn=name&tr=url

before calling xdg-open, which makes deluge look for a file with that name.

$ deluge-gtk 'magnet:///?xt=urn:btih:HEX&dn=name&tr=url'
[ERROR ] 08:59:05 ipcinterface:217 No such file: /home/user/magnet:/?xt=urn:btih:HEX&dn=name&tr=url

I don't think a scheme'ed parameter should be interpreted as a file, or if it is, it should fall back to acting like a scheme if a file with that name does not exist.

Tags: patch
Revision history for this message
Chad Miller (cmiller) wrote :

This fixes it. The magnet scheme ends at a colon, not the follow-up parameter start.

Cas (calumlind)
Changed in deluge (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "upstream fix" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Eric Drechsel (ericdrex) wrote :

Deluge seems to be correct in refusing to parse magnet URIs with slashes after the colon. Transmission also does not accept them either.

gvfs-open (called by xdg-open, called by chrome) is adding the slashes, which I believe is a bug.

Revision history for this message
Eric Drechsel (ericdrex) wrote :

Here is an upstream report of the issue:

https://bugzilla.gnome.org/show_bug.cgi?id=748600

Here is the original patch which caused it:

https://bugzilla.gnome.org/show_bug.cgi?id=738690

Revision history for this message
Eric Drechsel (ericdrex) wrote :

Looks like it is fixed in Gnome 3.16.

Changed in deluge (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Eric Drechsel (ericdrex) wrote :

Correction: fixed in 3.16 branch, so will be in the next 3.16 series release (3.16.3 presumably)

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

Other bug subscribers

Bug attachments

Remote bug watches

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