I've just upgraded to the lastest Java SDK and my presigned urls are no longer working.

Previously I used


However now the generatePresignedUrlRequest returns this error:

There were headers present in the request which were not signed:  x-amz-acl

How do I sign the x-amz-acl header?


Changed to:

   generatePresignedUrlRequest.putCustomRequestHeader(Headers.S3_CANNED_ACL, CannedAccessControlList.PublicRead.toString());
  • Good that you found a solution! Consider marking your answer as accepted if it completely addresses the problem. – MLu Feb 23 '19 at 1:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.