-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetObjectAttributes fails when requesting multiple attributes #720
Comments
Did some more debugging and isolated the problem to here:
^ as you can see the canonicalization of the request is incorrect in the case of repeated headers (per docs https://docs.aws.amazon.com/general/latest/gr/create-signed-request.html#create-canonical-request) |
See spec in https://docs.aws.amazon.com/general/latest/gr/create-signed-request.html#create-canonical-request Previously, repeated headers would appear twice on separate lines in the `CanonicalHeaders` section and twice in the `SignedHeaders` section. This PR fixes it to appear once. This should fix issues like this one awslabs/aws-sdk-rust#720
Fixed with smithy-lang/smithy-rs#2261! |
Thank you for looking into the issue and creating a PR out of it! We'll review the submitted PR. |
|
Describe the bug
Using
GetObjectAttributes
, if you pass.object_attributes
more than once, it fails with a SignatureMismatch error.If you pass exactly one object attribute, it works fine.
Expected Behavior
Expect successful run with
GetObjectAttributesOutput
Current Behavior
Reproduction Steps
Possible Solution
Maybe there's some bug in the signing from rust sdk? Seems to work ok from AWS CLI, so API seems ok.
Additional Information/Context
No response
Version
Environment details (OS name and version, etc.)
MacOS 13.1
Logs
Here's some logs. I redacted private(ish) object keys that's likely to not be relevant.
The text was updated successfully, but these errors were encountered: