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 545000 - Transfer of file from Amazon S3 fails with Access Denied
Transfer of file from Amazon S3 fails with Access Denied
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Module: http
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
gnome[unmaintained]
Depends on:
Blocks: 510110
 
 
Reported: 2008-07-27 16:12 UTC by Christian Schlotter
Modified: 2018-08-17 13:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
xfertest.py (890 bytes, text/plain)
2008-07-27 16:13 UTC, Christian Schlotter
Details
xfertest.c (1.68 KB, text/plain)
2008-07-28 20:30 UTC, Christian Schlotter
Details

Description Christian Schlotter 2008-07-27 16:12:47 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):
  • File "./xfertest.py", line 18 in <module>
    xfer(uri1, target1)
  • File "./xfertest.py", line 13 in xfer
    overwrite_mode=gnomevfs.XFER_OVERWRITE_MODE_ABORT)
AccessDeniedError: Access denied
1: failure
2: success
Comment 1 Christian Schlotter 2008-07-27 16:13:19 UTC
Created attachment 115374 [details]
xfertest.py
Comment 2 Christian Schlotter 2008-07-28 20:30:42 UTC
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
Comment 3 André Klapper 2008-08-02 20:15:14 UTC
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.
Comment 4 Christian Schlotter 2008-08-03 00:10:21 UTC
It's gnome-vfs 2.20.1.
Comment 5 Christian Schlotter 2008-08-08 20:15:46 UTC
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
Comment 6 John Stowers 2008-08-09 02:02:22 UTC
The same problem exists in gvfs

See bug #547020
Comment 7 Christian Kellner 2010-02-20 12:25:48 UTC
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.
Comment 8 André Klapper 2018-08-17 13:51:35 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!