aws-ant-tasks icon indicating copy to clipboard operation
aws-ant-tasks copied to clipboard

Unable to download S3 files

Open rpiskule opened this issue 9 years ago • 6 comments

Exception while trying to download object: AWS authentication requires a valid Date or x-amz-date header

rpiskule avatar Feb 19 '16 22:02 rpiskule

Exactly. I can't run an upload task either. It seems that AWS has changed there API, but this library had not kept up with it.

rtnewton1 avatar May 16 '16 05:05 rtnewton1

Sorry for the slow response on this one. Do you guys happen to have any HTTP wire logs from this error? The S3 API has remained backwards compatible since it's original release in 2006, so older SDK versions should work just fine. I'll see if we can repro the issue over on our side and find some more clues.

fulghum avatar Jul 05 '16 16:07 fulghum

I encountered the same problem and found clues in this thread: https://github.com/aws/aws-sdk-java/issues/484 The problem is related to new Java releases and joda-time releases prior to 2.8.1

To solve it, i replaced the content of the /org/joda/time folder inside aws-java-sdk-ant-tasks-1.2.3.jar with the content of the latest joda-time.jar (2.9.4)

GenghisChen avatar Jul 15 '16 17:07 GenghisChen

Outstanging!

On Jul 15, 2016 12:48 PM, "Chen Levy" [email protected] wrote:

I encountered the same problem and found clues in this thread: aws/aws-sdk-java#484 https://github.com/aws/aws-sdk-java/issues/484 The problem is related to new Java releases and joda-time releases prior to 2.8.1

To solve it, i replaced the content of the /org/joda/time folder inside aws-java-sdk-ant-tasks-1.2.3.jar with the content of the latest joda-time.jar (2.9.4)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/awslabs/aws-ant-tasks/issues/15#issuecomment-233020160, or mute the thread https://github.com/notifications/unsubscribe-auth/ADmBekG50qUNpsUVS11JrM-zyPhBVCp6ks5qV8fxgaJpZM4HeY44 .

rtnewton1 avatar Jul 22 '16 01:07 rtnewton1

The fix mentioned in this ticket can be downloaded from:

http://nexus.terraframe.com/service/local/repositories/thirdparty/content/com/amazonaws/aws-java-sdk-ant-tasks/1.2.3-2/aws-java-sdk-ant-tasks-1.2.3-2.jar

terraframe avatar Dec 27 '16 19:12 terraframe

@terraframe thank you. Using that jar worked for me.

tylervz avatar Feb 07 '17 21:02 tylervz