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 549553 - gvfs mangles uri for unhandled schemes
gvfs mangles uri for unhandled schemes
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: daemon
unspecified
Other Linux
: High critical
: ---
Assigned To: gvfs-maint
gvfs-maint
: 548598 (view as bug list)
Depends on:
Blocks: 549032
 
 
Reported: 2008-08-27 09:21 UTC by Bastien Nocera
Modified: 2008-08-27 13:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for the above (915 bytes, patch)
2008-08-27 09:46 UTC, Bastien Nocera
none Details | Review

Description Bastien Nocera 2008-08-27 09:21:12 UTC
char *url = "zune://subscribe/?BBC%20Xtra=http://downloads.bbc.co.uk/podcasts/worldservice/xtra/rss.xml"

file = g_file_new_for_uri (url);
g_print ("url: %s\n", g_file_get_uri (file));

This will print:
zune://subscribe/
instead of:
zune://subscribe/?BBC%20Xtra=http://downloads.bbc.co.uk/podcasts/worldservice/xtra/rss.xml

This happens with mms:// links, and all the other schemes that aren't handled by a mount spec (ie. also with http if the soup backend isn't available).
Comment 1 Bastien Nocera 2008-08-27 09:46:21 UTC
Created attachment 117440 [details] [review]
Patch for the above
Comment 2 Bastien Nocera 2008-08-27 09:49:58 UTC
Tested with the bits from bug 549032, works fine for me
Comment 3 Christian Kellner 2008-08-27 13:24:48 UTC
Looks good to me.
Comment 4 Bastien Nocera 2008-08-27 13:39:53 UTC
2008-08-27  Bastien Nocera  <hadess@hadess.net>

	* client/gdaemonvfs.c (get_mountspec_from_uri),
	(_g_daemon_vfs_get_uri_for_mountspec): Don't drop
	query and fragment portions of the URI when decoding
	it and the URI scheme isn't handled by any backends
	(Closes: #549553)
Comment 5 Bastien Nocera 2008-08-27 13:40:05 UTC
*** Bug 548598 has been marked as a duplicate of this bug. ***