0014-00000003

Updated at:

Problem description

The XML request body of the PutBucketLifecycle request contains an unsupported node.

Causes

You sent an Amazon S3-compatible PutBucketLifecycle request whose request body contains the unsupported NoncurrentVersionExpiration node.

Examples

The following Amazon S3-compatible PutBucketLifecycle request contains the unsupported NoncurrentVersionExpiration 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: AWS LTAI****************:Phuu***************
<?xml version="1.0" encoding="UTF-8"?>
<LifecycleConfiguration>
  <Rule>
    <ID>rule</ID>
    ......
    <NoncurrentVersionExpiration>
         ......
    </NoncurrentVersionExpiration>
 	</Rule>
 </LifecycleConfiguration>

Solutions

  • Ensure that the XML request body of the Amazon S3-compatible PutBucketLifecycle request has a valid structure.

    The following example shows a valid request:

    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: AWS LTAI****************:Phuu***************
    <?xml version="1.0" encoding="UTF-8"?>
    <LifecycleConfiguration>
      <Rule>
        <ID>RuleID</ID>
        <Prefix>Prefix</Prefix>
        <Status>Status</Status>
        <Expiration>
          <Days>Days</Days>
        </Expiration>
        <Transition>
          <Days>Days</Days>
          <StorageClass>StorageClass</StorageClass>
        </Transition>
        <AbortMultipartUpload>
          <Days>Days</Days>
        </AbortMultipartUpload>
      </Rule>
    </LifecycleConfiguration>
  • Use an Amazon S3-compatible SDK to send the request.

  • Configure lifecycle rules in the OSS console to avoid manually constructing the request body.

References