-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
In Ruby, S3 get_object_attributes() breaks in aws-sdk-core v3.192.0 and newer. #3032
Comments
I apologize. I meant to put this in Localstack, not your project... though I'm confused why spaces were introduced... |
Hi! Thank you very much for bringing this to our attention. I believe the spacing was introduced when there was a large effort to keep the protocols aligned across SDKs. We will take a closer look and get back to you. |
Given that RFC 9110 indicates that the optional white space is valid, this appears to be a localstack issue (and thank you for submitting the ticket there!). I will closing this ticket but feel free to let us know if you have any questiuons. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Thanks for looking, @jterapin! |
Describe the bug
When making a call to
get_object_attributes()
in Ruby using theaws-sdk-s3
Gem I get only partial responses.For example:
Will return something like this:
The exact attribute(s) returned don't seem to be consistent.
Expected Behavior
I expect to get a filled-out
Aws::S3::Types::GetObjectAttributesOutput
object.If I revert back to
s3-aws-core
version3.191.6
, it works as expected:Current Behavior
When using
aws-sdk-s3
v3.192.0 or higher, I get a bogus result:Reproduction Steps
I have been able to reproduce it using
curl
:It seems that if the
X-Amz-Object-Attributes
header contains spaces that the Localstack parser stops reading.Possible Solution
The parser for the
X-Amz-Object-Attributes
header should be less rigid and allow spaces.Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-core
Environment details (Version of Ruby, OS environment)
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
The text was updated successfully, but these errors were encountered: