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

Days is a required parameter in S3 restore_object #3134

Closed
mullermp opened this issue Dec 3, 2020 · 4 comments
Closed

Days is a required parameter in S3 restore_object #3134

mullermp opened this issue Dec 3, 2020 · 4 comments
Assignees
Labels
feature-request A feature should be added or improved. s3 service-api General API label for AWS Services.

Comments

@mullermp
Copy link
Contributor

mullermp commented Dec 3, 2020

Original issue: #2380

For S3's restore object, the docs state:

Objects in the GLACIER and DEEP_ARCHIVE storage classes are archived. To access an archived object, you must first initiate a restore request. This restores a temporary copy of the archived object. **In a restore request, you specify the number of days that you want the restored copy to exist.** After the specified period, Amazon S3 deletes the temporary copy but the object remains archived in the GLACIER or DEEP_ARCHIVE storage class that object was restored from.

"Days" cannot be set to required because the request might not be for GLACIER or DEEP_ARCHIVE.

The Ruby SDK sends valid XML

"<RestoreRequest xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"/>\n

The service responds with unhelpful text The XML you provided was not well-formed or did not validate against our published schema

The error message thrown here should be friendlier, such as "Days is missing"

@kellertk kellertk added the feature-request A feature should be added or improved. label Dec 5, 2020
@stobrien89 stobrien89 added the s3 label Jul 26, 2021
@tim-finnigan tim-finnigan added the service-api General API label for AWS Services. label Jun 9, 2022
@yenfryherrerafeliz yenfryherrerafeliz self-assigned this Jun 9, 2022
@kellertk
Copy link
Contributor

P126357524

@mullermp
Copy link
Contributor Author

Thank you!

@zshzbh zshzbh transferred this issue from aws/aws-sdk Oct 30, 2024
@zshzbh
Copy link

zshzbh commented Oct 30, 2024

Hey there,

I'm closing this ticket as I have submitted a feature request to the service team. The updates will be posted on package release info and aws blogs.

Thanks!
Maggie

@zshzbh zshzbh closed this as completed Oct 30, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. s3 service-api General API label for AWS Services.
Projects
None yet
Development

No branches or pull requests

7 participants