All Products
Search
Document Center

Object Storage Service:0014-00000003

Last Updated:Apr 15, 2025

Problem description

The XML request body of the PutBucketLifecycle request contains a node that is not supported.

Causes

You initiated a PutBucketLifecycle request that is compatible with Amazon S3, but the XML request body of the request contains the NoncurrentVersionExpiration node, which is not supported. In this case, an error is reported.

Examples

In the following sample code, the PutBucketLifecycle request is compatible with Amazon S3 and contains the NoncurrentVersionExpiration node, which is not supported.

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 Wnjl3fg9fdv8fg4b****:Phuu8bBhS8dsff2a****
<?xml version="1.0" encoding="UTF-8"?>
<LifecycleConfiguration>
  <Rule>
    <ID>rule</ID>
    ......
    <NoncurrentVersionExpiration>
         ......
    </NoncurrentVersionExpiration>
 	</Rule>
 </LifecycleConfiguration>

Solutions

  • Make sure that the XML request body of the PutBucketLifecycle request that is compatible with Amazon S3 uses a valid format.

    The following code provides an example of 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 Wnjl3fg9fdv8fg4b****:Phuu8bBhS8dsff2a****
    <?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>
  • Initiate a request by using an SDK that is compatible with Amazon S3.

  • Configure lifecycle rules in the Object Storage Service (OSS) console to automatically create request bodies.

References