0018-00000105

问题描述

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

问题原因

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

问题示例

以下请求中DeleteCertificate节点取值为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>
      <DeleteCertificate>stop</Force>
    </CertificateConfiguration>
  </Cname>
</BucketCnameConfiguration>

解决方案

将DeleteCertificate节点取值修改为true或false。

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>
    <CertificateConfiguration>
      <DeleteCertificate>true</DeleteCertificate>
    </CertificateConfiguration>
  </Cname>
</BucketCnameConfiguration>

相关文档

PutCname