aws-s3
aws-s3 copied to clipboard
Bad 'expire' timestamp on authentication?
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.
I'm having the same problem here. Can this be pulled into the main repo?