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 665379 - g_app_info_launch_default_for_uri ends as Operation not supported when url contains %2F
g_app_info_launch_default_for_uri ends as Operation not supported when url co...
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: client module
git master
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on: 676313
Blocks:
 
 
Reported: 2011-12-02 10:38 UTC by Jan Horak
Modified: 2012-06-22 12:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (343 bytes, text/plain)
2011-12-02 10:38 UTC, Jan Horak
Details

Description Jan Horak 2011-12-02 10:38:03 UTC
Created attachment 202583 [details]
testcase

When trying to open following URL:
http://sourceforge.net/projects/scantailor/files%2Fscantailor-devel%2Fplus%2F0.9.11pre-2011-11-30%2FREADME/download
by g_app_info_launch_default_for_uri() function, URL is not opened:

** (process:3932): WARNING **: Could not launch default application for URI: Operation not supported

URL open just fine when pasted into Firefox.

Compile testcase by: gcc launch.c `pkg-config gio-2.0 --cflags --libs`
Comment 1 Matthias Clasen 2011-12-06 12:37:29 UTC
'paste into firefox' is not a very strong test for url validity...
Comment 2 Jan Horak 2011-12-06 12:45:44 UTC
Okay, so what is? Wget? Midori? Google chrome? It simply opens in every browser I tried. So there's no reason to not get over g_app_info_launch_default_for_uri IMO.
Comment 3 Matthias Clasen 2011-12-07 04:08:21 UTC
The reason for the failure here is in gvfs, client/gvfsuriutils.c:g_vfs_decode_uri
refuses to accept uris which contain %-encoded slashes.
Comment 4 Tomas Bzatek 2012-06-22 12:42:31 UTC
This has been fixed by transition to g_app_info_launch_default_for_uri() in bug 676313.