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

s3.Object.restore_object does not accept a description #3885

Closed
magarnicle opened this issue Oct 4, 2023 · 2 comments
Closed

s3.Object.restore_object does not accept a description #3885

magarnicle opened this issue Oct 4, 2023 · 2 comments
Assignees
Labels
bug This issue is a confirmed bug. duplicate This issue is a duplicate. investigating This issue is being investigated and/or work is in progress to resolve the issue. p2 This is a standard priority issue s3

Comments

@magarnicle
Copy link

Describe the bug

According to the docs I should be able to supply a description for a restore job, like so:

s3_object.restore_object(RestoreRequest={ "Days": 7, "GlacierJobParameters": {"Tier": "Bulk"}, "Description": "test", })

Expected Behavior

The restore should be initiated, with the description available when viewing the S3 object.

Current Behavior

I get an error:

botocore.exceptions.ClientError: An error occurred (MalformedXML) when calling the RestoreObject operation: The XML you provided was not well-formed or did not validate against our published schema

Reproduction Steps

Get a valid S3 object, then try to restore it:
s3_object.restore_object(RestoreRequest={ "Days": 7, "GlacierJobParameters": {"Tier": "Bulk"}, "Description": "test", })

Try again without the "Description" field and see that it succeeds.

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.28.59

Environment details (OS name and version, etc.)

Ubuntu 22.04.3 LTS

@magarnicle magarnicle added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Oct 4, 2023
@RyanFitzSimmonsAK RyanFitzSimmonsAK self-assigned this Oct 4, 2023
@RyanFitzSimmonsAK RyanFitzSimmonsAK added s3 p3 This is a minor priority issue p2 This is a standard priority issue investigating This issue is being investigated and/or work is in progress to resolve the issue. duplicate This issue is a duplicate. and removed bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. p3 This is a minor priority issue labels Oct 4, 2023
@RyanFitzSimmonsAK
Copy link
Contributor

Hi @magarnicle, thanks for reaching out. This is known behavior with the description parameter, and we have an issue in our cross-SDK repository (aws/aws-sdk#505) tracking it. I'm going to close this as a duplicate, and reach out to the service team again to try and get this fixed or documented. Please refer to the tracking issue for updates.

@RyanFitzSimmonsAK RyanFitzSimmonsAK closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2023
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

⚠️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
bug This issue is a confirmed bug. duplicate This issue is a duplicate. investigating This issue is being investigated and/or work is in progress to resolve the issue. p2 This is a standard priority issue s3
Projects
None yet
Development

No branches or pull requests

2 participants