GNOME Bugzilla – Bug 312171
hal/non-hal incoherence: gnome_vfs_drive_get_activation_uri ()
Last modified: 2008-09-06 19:05:52 UTC
gnome_vfs_drive_get_activation_uri () returns "" or the fstab path (ie: "file:///media/floppy0") for a non-mounted volume, depending of how it's build. That's not coherent and creates issues like bug #310270. The API has no description for this function. A convention should be picked here and one of the functions changed to match it.
Good catch! This has to be sorted out since it can be a nasty source of confusion and crashers.
This is pretty intentional - in the general case we simply don't know a'priori where a GnomeVFSDrive will be mounted - this is especially true if you use a mount program like pmount where the mount point in /media is not created until you actually mount the device. I submit it's a bug we need to fix if applications / libraries depend on the activation_uri GnomeVFSDrive at all. Does this make sense? See bug 308475 for an example of one bug fixed.
That seems to be right, so the non-hal code should be changed to return "" too
Will this be fixed for 2.12? Does it need to be? What is the user impact?
davidz: The problem seems to be that you get NULL from gnome_vfs_uri_new(""), which can cause crashes like in bug 310270.
I'm going to drop this from the release blocker list (gnome-target); if you feel it should still be on the list, feel free to re-add and answer Luis' questions for us bugsquadders. :)
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome. If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs. @Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together. General further information: http://en.wikipedia.org/wiki/GVFS Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html