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

Problem with list_objects_v2 #33

Open
WoolenSweater opened this issue Dec 5, 2024 · 0 comments
Open

Problem with list_objects_v2 #33

WoolenSweater opened this issue Dec 5, 2024 · 0 comments

Comments

@WoolenSweater
Copy link

Hi.

I noticed a problem with the method.
In the process of parsing the response, there is a condition that checks the values ​​read from the Contents node. If at least one value is missing, the metadata is not added to the result.
https://github.com/aiokitchen/aiohttp-s3-client/blob/master/aiohttp_s3_client/xml.py#L75

According to Amazon's documentation, all expected values ​​are optional. Although this may also apply to the nodes themselves.
https://docs.aws.amazon.com/AmazonS3/latest/API/API_Object.html#API_Object_Contents

The same s3mock used in tests does not return the StorageClass node at all. That is, in tests, the method does not return anything and no real checking occurs.

I would not refuse help in solving this problem. Then I am ready to make corrections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant