Skip to content

Java S3 client cannot access files after updating to 1.4.0 #6650

Answered by ivandika3
jjimenezgarcia asked this question in FAQ
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 19 replies

Comment options

You must be logged in to vote
19 replies
@adoroszlai
Comment options

@jjimenezgarcia
Comment options

@adoroszlai
Comment options

@ivandika3
Comment options

Answer selected by jjimenezgarcia
@jjimenezgarcia
Comment options

@jjimenezgarcia
Comment options

@ivandika3
Comment options

@jjimenezgarcia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
4 participants