問題描述
開啟或者關閉資料複製時間控制(RTC)功能時,ReplicationRule節點下缺少ID參數。
問題原因
您發起了PutBucketRTC請求,但是請求中ReplicationRule節點下缺少ID參數。
問題樣本
以下請求樣本中ReplicationRule節點下缺少ID參數。
POST /?replication&comp=add HTTP/1.1
PUT /?rtc HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Content-Length:ContentLength
Content-Type: application/xml
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<ReplicationRule>
<RTC>
<Status>enabled or disabled</Status>
</RTC>
</ReplicationRule>解決方案
ReplicationRule節點下添加ID參數,用於指定規則ID。正確樣本如下:
PUT /?rtc HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Thu, 21 Jul 2022 15:39:18 GMT
Content-Length:46
Content-Type: application/xml
Authorization: OSS qn6qrrqxo2oawuk53otf****:CTkuxpLAi4XZ+WwIfNm0Fmgb****
<?xml version="1.0" encoding="UTF-8"?>
<ReplicationRule>
<RTC>
<Status>enabled</Status>
</RTC>
<ID>test_replication_rule_1</ID>
</ReplicationRule>