Skip to content
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

list_object_versions example does not match description #3941

Closed
jrotenstein opened this issue Nov 22, 2023 · 2 comments
Closed

list_object_versions example does not match description #3941

jrotenstein opened this issue Nov 22, 2023 · 2 comments
Assignees
Labels
documentation This is a problem with documentation. s3

Comments

@jrotenstein
Copy link

jrotenstein commented Nov 22, 2023

Describe the issue

The example says "The request limits the number of items returned to two."

However, MaxKeys is not specified in the example, so this is incorrect.

response = client.list_object_versions(
    Bucket='examplebucket',
    Prefix='HappyFace.jpg',
)

print(response)

It should include: MaxKeys=2

Links

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/list_object_versions.html

@jrotenstein jrotenstein added documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged. labels Nov 22, 2023
@tim-finnigan tim-finnigan self-assigned this Nov 24, 2023
@tim-finnigan
Copy link
Contributor

Hi @jrotenstein thanks for bringing this to our attention. I can confirm that the example you referenced should include MaxKeys=2 in order to limit the number of items returned to two.

Examples like this are provided by service teams and documented across AWS SDKs (for example JavaScript and Ruby). So we need to forward this issue to the S3 team so that they can fix the issue upstream. I created a new issue to track this going forward: aws/aws-sdk#650.

@tim-finnigan tim-finnigan added s3 and removed needs-triage This issue or PR still needs to be triaged. labels Nov 24, 2023
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is a problem with documentation. s3
Projects
None yet
Development

No branches or pull requests

2 participants