AWS SDK for Java: “Unable to verify integrity of data download.”

Ich hab gerade den Amazon Webservice Client for Java aktualisiert und gleich Probleme bekommen. Seit der Version 1.4.5 werden da die MD5-Hashs geprüft und das scheint nicht immer zu klappen. Blöd. Man kann dieses “Feature” aber auch einfach wieder abschalten. Also wer solche Exceptions nach einem Update auf 1.4.5+ sieht:

Caused by: com.amazonaws.AmazonClientException: Unable to verify integrity of data download. Client calculated content hash didn't match hash calculated by Amazon S3. The data may be corrupt.

Dann einfach mal bei der Initialisierung eine System-Propery setzen:

System.setProperty("com.amazonaws.services.s3.disableGetObjectMD5Validation","true");

hope that helps…

Posted in Dies und Das Tagged with:
One comment on “AWS SDK for Java: “Unable to verify integrity of data download.”
  1. bdhwan says:

    You saved my life. thanks.

1 Pings/Trackbacks for "AWS SDK for Java: “Unable to verify integrity of data download.”"
  1. […] came across this helpful article (written in German) which gave me a workaround. Despite the version differences, setting the system […]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>