GNOME Bugzilla – Bug 545000
Transfer of file from Amazon S3 fails with Access Denied
Last modified: 2018-08-17 13:51:35 UTC
Amazon S3 allows generation of links with an expiration date. An example of such a link is: http://d134w4tst3t.s3.amazonaws.com:80/a?Signature=aNxGCZQ6s5Wr3WeCIDXvQrivjhA%3D&Expires=1217534131&AWSAccessKeyId=0EYZF4DV8A7WM0H73602 (valid until approx. Sunday) I want to retrieve this file with gnomevfs.xfer_uri(), but it fails. Please find attached a sample script which tries to transfer the above file (filename "a", size 0 bytes) and http://www.amazon.com/favicon.ico. It produces the following output: $ ./xfertest.py Traceback (most recent call last):
+ Trace 203923
xfer(uri1, target1)
overwrite_mode=gnomevfs.XFER_OVERWRITE_MODE_ABORT)
1: failure 2: success
Created attachment 115374 [details] xfertest.py
Created attachment 115452 [details] xfertest.c The same in C. $ ./xfertest Error Access denied occured opening location http://d134w4tst3t.s3.amazonaws.com:80/a?Signature=aNxGCZQ6s5Wr3WeCIDXvQrivjhA%3D&Expires=1217534131&AWSAccessKeyId=0EYZF4DV8A7WM0H73602
Which gnome-vfs version is this about at all? This is most probably a WONTFIX. Please retest this by using gvfs which superceded gnome-vfs - see http://library.gnome.org/devel/gio/2.15/ch15.html for porting information.
It's gnome-vfs 2.20.1.
I'm sorry, by now the link has expired: Here's a link valid for one year: https://d134w4tst3t.s3.amazonaws.com:443/a?Signature=6VJ9%2BAdPVZ4Z7NnPShRvtDsLofc%3D&Expires=1249330377&AWSAccessKeyId=0EYZF4DV8A7WM0H73602
The same problem exists in gvfs See bug #547020
Mass re-assignin old gnome-vfs http bugs to gnome-vfs-maint@gnome.bugs so they disappear from my "My bugs" list. Sorry for the spam.
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!