aws-ant-tasks
aws-ant-tasks copied to clipboard
Unable to download S3 files
Exception while trying to download object: AWS authentication requires a valid Date or x-amz-date header
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.
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.
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)
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 .
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 thank you. Using that jar worked for me.