aws s3api get-object-attributes
showing whats not supposed to show when using --object-attributes
flag
#9183
Labels
bug
This issue is a bug.
documentation
This is a problem with documentation.
p2
This is a standard priority issue
s3api
service-api
This issue is due to a problem in a service API, not the SDK implementation.
Describe the bug
When using
aws s3api get-object-attributes
with--object-attributes "<something>"
flag, it is returning a date that stands forLastModified
, even when there is nothing to be returned for my option.In the
aws s3api get-object-attributes help
command, the option--object-attributes
says:I believe that either that must be more clear on the documentation or this behavior should be removed.
Being clearer in the docs helps knowing what to expect from the response (output) and use it to do other stuff with it.
Regression Issue
Expected Behavior
I expect to show only what I asked.
Current Behavior
The output shows the
LastModified
timestamp, as shown below usingaws s3api get-object-attributes --bucket "mybucket" --key "my/path" --object-attributes "StorageClass" "ObjectSize"
command as example:Reproduction Steps
Possible Solution
Either:
Additional Information/Context
No response
CLI version used
aws-cli/2.22.28 Python/3.12.6 Linux/6.8.0-50-generic exe/x86_64.ubuntu.22
Environment details (OS name and version, etc.)
Ubuntu 22.04.5 LTS
The text was updated successfully, but these errors were encountered: