0014-00000006

Updated at:

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 Rule/Filter/And node, which is not supported. In this case, an error is reported.

Examples

In the following sample code, the PutBucketLifecycle request that is compatible with Amazon S3 contains the Rule/Filter/And 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>
    ......
    <Filter>
      <And>
         ......
      </And>
    </Filter>
 	</Rule>
 </LifecycleConfiguration>

Solutions

  • Make sure that the XML request body 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>rule</ID>
        <Prefix></Prefix>
        <Status>Enabled</Status>
        <Filter>
          <Not>
            <Prefix>log</Prefix>
            <Tag><Key>key1</Key><Value>value1</Value></Tag>
          </Not>
        </Filter>    
        <Transition>
          <Days>30</Days>
          <StorageClass>Archive</StorageClass>
        </Transition>
        <Expiration>
          <Days>100</Days>
        </Expiration>
      </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