Java S3 client cannot access files after updating to 1.4.0 #6650
-
Hello, I'm having an issue after an update from 1.3.0 to 1.4.0. I access my files through s3 client Java API. My buckets keep their layout properly after updating, so I assume that is not the problem. Hope you can help. This is my Java code: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 19 replies
-
Are there any logs or error messages can be shared when access fails? |
Beta Was this translation helpful? Give feedback.
Could you try to set
System.setProperty("com.amazonaws.services.s3.disableGetObjectMD5Validation", "true");
before initializing the S3 Java client and see whether the file can be downloaded?Ref: https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/internal/SkipMd5CheckStrategy.html
The reason I suspected the Etag, was because the issue only comes up when downloading using AWS Java SDK, although it worked on AWS CLI.
You can also try to debug it in the IDE and let us know which part of code was causing the issue.