0018-00000106

问题描述

设置自定义域名请求中,Force节点取值错误。

问题原因

设置自定义域名请求中,Force节点取值错误,导致请求错误。

问题示例

以下请求中Force节点取值为stop,取值不合法。

POST /?cname&comp=add HTTP/1.1
Date: Thu, 15 May 2014 11:18:32 GMT
Content-Length:556
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************

<BucketCnameConfiguration>
  <Cname>
    <Domain>my.cname.com</Domain>
    <Status>enable</Status>
    <CertificateConfiguration>
      <Certificate>my-certificate</Certificate>
      <PrivateKey>my-private-key</PrivateKey>
      <Force>stop</Force>
    </CertificateConfiguration>
  </Cname>
</BucketCnameConfiguration>

解决方案

Force节点取值修改为truefalse。

POST /?cname&comp=add HTTP/1.1
Date: Thu, 15 May 2014 11:18:32 GMT
Content-Length:556
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************

<BucketCnameConfiguration>
  <Cname>
    <Domain>my.cname.com</Domain>
    <Status>enable</Status>
    <CertificateConfiguration>
      <Certificate>my-certificate</Certificate>
      <PrivateKey>my-private-key</PrivateKey>
      <Force>true</Force>
    </CertificateConfiguration>
  </Cname>
</BucketCnameConfiguration>

相关文档

PutCname