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 349086 - gnome_vfs_xfer_uri does not resolve symlinks
gnome_vfs_xfer_uri does not resolve symlinks
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: File operations
2.15.x
Other All
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
gnome[unmaintained]
Depends on:
Blocks: 343061
 
 
Reported: 2006-07-28 13:58 UTC by Felix Riemann
Modified: 2018-08-17 13:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
test utility (1.06 KB, text/x-csrc)
2006-07-28 13:59 UTC, Felix Riemann
Details

Description Felix Riemann 2006-07-28 13:58:57 UTC
gnome_vfs_xfer_uri doesn't seem to resolve symlinks as source uri. It still copies the symlink not the linked file, even with GNOME_VFS_XFER_FOLLOW_LINKS  and GNOME_VFS_XFER_FOLLOW_LINKS_RECURSIVE as options.

How to reproduce:
1. Take a file (I call it test-image.jpg) and put it into a directory.
2. Create a symlink to it (I call it test-link.jpg) into the same directory.
3. Use the attached test utility to copy the symlink to another directory:
   ./vfs-xfer-test test-link.jpg ../test-link.jpg
4. stat ../test-link.jpg
   It still shows a (possibly dead) symlink not the linked image.
Comment 1 Felix Riemann 2006-07-28 13:59:55 UTC
Created attachment 69829 [details]
test utility

A test utility to copy a file using gnome_vfs_xfer_uri.
Comment 2 Christian Neumair 2006-08-13 18:04:09 UTC
Thanks for your bug report!

Maybe we should use _gnome_vfs_uri_resolve_all_symlinks_uri() for symlinks in the copy_foo helpers if files are symlinks and the respective options are specified.
Comment 3 Claudio Saavedra 2007-02-11 02:53:33 UTC
Any progress on this? EOG's bug #343061 depends on this. Thank you.
Comment 4 André Klapper 2018-08-17 13:52:44 UTC
gnome-vfs got deprecated in 2008.

gnome-vfs is not under active development anymore and had its last code changes
in 2011. Its codebase has been archived:
https://gitlab.gnome.org/Archive/gnome-vfs/commits/master

gio (in glib) and gvfs are its successors. See https://developer.gnome.org/gio/stable/ch33.html and https://people.gnome.org/~gicmo/gio-migration-guide/ for porting info.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of glib/gio/gvfs. Thanks!