0014-00000073
Problem description
A child node is missing from the AbortMultipartUpload node in the XML request body of a PutBucketLifecycle request.
Cause
A PutBucketLifecycle request fails because the Days or CreatedBeforeDate child node is missing from the AbortMultipartUpload node in the XML request body.
Example problem
In the following request body, the Days or CreatedBeforeDate child node is missing from the AbortMultipartUpload node.
PUT /?lifecycle HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Content-Length: 336
Date: Mon , 6 May 2019 15:23:20 GMT
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="UTF-8"?>
<LifecycleConfiguration>
<Rule>
<ID>rule1</ID>
<Prefix>zzz</Prefix>
<Status>Enabled</Status>
<AbortMultipartUpload>
</AbortMultipartUpload>
</Rule>
</LifecycleConfiguration>Solutions
Add the
DaysorCreatedBeforeDatechild node to theAbortMultipartUploadnode in the XML request body.Days: Specifies the number of days after a fragment is last updated before the lifecycle rule takes effect.
CreatedBeforeDate: Specifies a date. Object Storage Service (OSS) applies the lifecycle rule to fragments that were last updated before this date. The date must be in the yyyy-MM-ddT00:00:00.000Z format. The date must follow the ISO 8601 standard and be in UTC.
The following example shows how to add the
Dayschild node.PUT /?lifecycle HTTP/1.1 Host: oss-example.oss-cn-hangzhou.aliyuncs.com Content-Length: 336 Date: Mon , 6 May 2019 15:23:20 GMT Authorization: OSS qn6q**************:77Dv**************** <?xml version="1.0" encoding="UTF-8"?> <LifecycleConfiguration> <Rule> <ID>rule1</ID> <Prefix>zzz</Prefix> <Status>Enabled</Status> <AbortMultipartUpload> <Days>20</Days> </AbortMultipartUpload> </Rule> </LifecycleConfiguration>You can configure lifecycle rules in the OSS console to avoid manually constructing the request body.