After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793014 - "gio open" rewrites URIs
"gio open" rewrites URIs
Status: RESOLVED DUPLICATE of bug 779182
Product: glib
Classification: Platform
Component: gio
2.54.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2018-01-29 21:15 UTC by Marius Gedminas
Modified: 2018-04-12 03:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marius Gedminas 2018-01-29 21:15:22 UTC
transmission-remote-gtk installs a .desktop file with MimeType=...;x-scheme-handler/magnet;

If you run gio open 'magnet:?xt=....', it will execute transmission-remote-gtk magnet:///?xt=.....

Note how magnet: was rewritten to magnet:///.

Transmission does expect magnet URLs with extra slashes.  End-user visible behavior is that they click on a magnet URL in their browser and get an error:
https://github.com/transmission-remote-gtk/transmission-remote-gtk/issues/59.

I do not think gio is right to rewrite URLs this way.
Comment 1 Ondrej Holy 2018-01-30 07:18:07 UTC
Thank you for your report. It should be already fixed in 2.54.3 stable version and 2.55.0 development version. Please reopen if you see this even with those versions.

*** This bug has been marked as a duplicate of bug 779182 ***
Comment 2 Marius Gedminas 2018-01-30 08:54:26 UTC
Are you sure that's the right bug?  The patch for it touches only code inside gio/win32/, and the bug I'm seeing happens on Linu
Comment 3 Marius Gedminas 2018-01-30 08:55:54 UTC
I'm sorry, I got lost between my browser tabs and mixed up bug numbers.  It was a mistake to start reading mail before morning coffee.