-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the bug
AWS SDK AWSXmlClient HTTP response code: 400
Resolved remote host IP address: 52.82.188.163
Request ID: WNC6R7167JNS40BV
Exception name: MalformedXML
Error message: Unable to parse ExceptionName: MalformedXML Message: The XML you provided was not well-formed or did not validate against our published schema
7 response headers:
connection : close
content-type : application/xml
date : Thu, 15 Jan 2026 01:51:16 GMT
server : AmazonS3
transfer-encoding : chunked
x-amz-id-2 : v2oFepqyh65PxFvrFRLJ96ddNV5eW9Nka4aTlC25B2rLWtL8KAANd0Rr8o44Ct6AVafTZkDp10k=
x-amz-request-id : WNC6R7167JNS40BV
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Restore an object from GLACIER
Current Behavior
Met error as described.
Reproduction Steps
1 archive an object to GLACIER
2 call restore for it.
Code like this:
`
Aws::S3::Model::RestoreObjectRequest request;
Aws::S3::Model::RestoreRequest restoreRequest;
restoreRequest.SetDays(1);
restoreRequest.SetTier(Aws::S3::Model::Tier::Expedited);
Aws::S3::Model::GlacierJobParameters glacierJobParameters;
// TODO why this Tier set twice?
glacierJobParameters.WithTier(Aws::S3::Model::Tier::Expedited);
restoreRequest.SetGlacierJobParameters(glacierJobParameters);
request.SetRestoreRequest(restoreRequest);
request.WithBucket(bucket()).WithKey(path);
auto outcome = client_->RestoreObject(request);
`
Possible Solution
I can not found demo or example for RestoreObject. I don't know if I'm using in a wrong way of this request.
Additional Information/Context
None
AWS CPP SDK version used
aws-sdk-cpp/1.11.352
Compiler and Version used
clang18
Operating System and version
macos