GNOME Bugzilla – Bug 549553
gvfs mangles uri for unhandled schemes
Last modified: 2008-08-27 13:40:05 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).
Created attachment 117440 [details] [review] Patch for the above
Tested with the bits from bug 549032, works fine for me
Looks good to me.
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)
*** Bug 548598 has been marked as a duplicate of this bug. ***