S3 using PreSigned URL using AWS JDK 2.x not working with Java spring boot #5803
Unanswered
bubaigit
asked this question in
Migration from v1 to v2
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ref - #3005 (comment)
I'm trying to download a document(zip file) from a S3 bucket using presigned url that was generated using JDK 21 / AWS Java SDK 2.20.0, but I'm having the error "SignatureDoesNotMatch - The request signature we calculated does not match the signature you provided. Check your key and signing method."
we will use - software.amazon.awssdk version - 2.20.0 / spring-boot-starter-parent - 3.3.7 / JDK 21
we also tried with the different latest/near latest version of the BOM from - https://mvnrepository.com/artifact/software.amazon.awssdk/bom
POM File is attached.
pom.txt
The S3 CORS policy as below

Refer the Below Java code to generate the GET request for the ZIP file
`public String generatePreSignedUrl(String bucketname, String fileKey, S3Client s3Client) {
}`
Beta Was this translation helpful? Give feedback.
All reactions