You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any XxxObjectRequest (HeadObjectRequest, PutObjectRequest, etc.) operation targeted at specific key containing + sign, e.g. a+b.txt results in error 'The request signature we calculated does not match the signature you provided. Check your key and signing method.'
This happens using latest sdk v2 library for S3 (and some other older versions tried).
software.amazon.awssdk.services.s3.model.S3Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (Service: S3, Status Code: 403, Request ID: H2E7JCK8TP75G2XA, Extended Request ID: uGN8mJ9U/2/Nn6nyI73MZPA4vpkvo3N2hFr7sG4EkyBDmUNHyMSoWqSXwbNs2F2CfURP994vK8z207G21cBd5Q==)
I was not able to reproduce the behavior described.
I have attempted both HeadObjectRequest and PutObjectRequest with the key a+b.txt" using was Java SDK v2.17.286 following the repro case sample and both completed successfully.
Could you please provide the verbose wirelogs associated with the behavior?
Hello @yasminetalby, apologies for all the hassle but it seems it is this issue aws/aws-sdk-java#1919
I was testing from within a bigger project that had explicitly set org.apache.httpcomponents:httpclient version to 4.5.7.
My bad, should have tested that in isolation.
This can be closed now.
Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Any XxxObjectRequest (HeadObjectRequest, PutObjectRequest, etc.) operation targeted at specific key containing
+
sign, e.g.a+b.txt
results in error 'The request signature we calculated does not match the signature you provided. Check your key and signing method.'This happens using latest sdk v2 library for S3 (and some other older versions tried).
Expected Behavior
No error. Operations succeed as it is for any other keys that do not contain '+' sign.
Current Behavior
such code:
results in:
software.amazon.awssdk.services.s3.model.S3Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (Service: S3, Status Code: 403, Request ID: H2E7JCK8TP75G2XA, Extended Request ID: uGN8mJ9U/2/Nn6nyI73MZPA4vpkvo3N2hFr7sG4EkyBDmUNHyMSoWqSXwbNs2F2CfURP994vK8z207G21cBd5Q==)
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.17.286
JDK version used
11.0.13
Operating System and version
macOS 12.6 (21G115)
The text was updated successfully, but these errors were encountered: