GNOME Bugzilla – Bug 727007
If set_display_name() fails, old file is returned
Last modified: 2014-04-11 16:55:06 UTC
NULL should be returned instead. E.g. instead of showing a permission denied error, this shows: $ gvfs-rename smb://localhost/tmp/cat dog Rename successful. New uri: smb://localhost/tmp/cat (gvfs-rename:1385): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Created attachment 272830 [details] [review] client: Return NULL if set_display_name() fails Return NULL as per the documentation rather than returning the original file. This prevents errors like the following, where "Permission Denied" should be displayed: $ gvfs-rename smb://localhost/tmp/cat dog Rename successful. New uri: smb://localhost/tmp/cat (gvfs-rename:1385): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Review of attachment 272830 [details] [review]: Looks good!
Comment on attachment 272830 [details] [review] client: Return NULL if set_display_name() fails Maybe would be better to commit it into the master after new branch will be created, because it could cause some bugs in other applications...
Makes sense. Are we waiting for 3.12.1 before we branch?
Probably yes, before that we will just commit only common bugfixes for master (and gnome-3-12)...
Pushed to master as a3d3074363cd271c94dd10606d7a9953625632da. Thanks!