aws-s3 icon indicating copy to clipboard operation
aws-s3 copied to clipboard

Bad 'expire' timestamp on authentication?

Open tizoc opened this issue 15 years ago • 1 comments
trafficstars

I noticed that when no 'date' value is provided on the request, Time.now is being used to build the time value: http://github.com/marcel/aws-s3/blob/master/lib/aws/s3/authentication.rb#L85

Since the server making the request Timezone may differ by many hours from the S3 one, the returned expire time may have passed already, making the url obtained in url_for useless.

Changing this to Time.now.utc fixed the problem for me.

tizoc avatar Oct 28 '10 13:10 tizoc

I'm having the same problem here. Can this be pulled into the main repo?

metasoarous avatar Nov 16 '11 03:11 metasoarous