全部產品
Search
文件中心

Object Storage Service:0031-00000101

更新時間:Jun 08, 2024

問題描述

資料複製規則中指定的目標Bucket名稱不合法。

問題原因

您發起了PutBucketReplication請求,但是資料複製規則中指定的目標Bucket名稱不合法。

問題樣本

通過Destination節點下的Bucket參數指定的目標Bucket名稱destbucket_test包含了底線(_)。

POST /?replication&comp=add HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com 
Content-Type: application/xml
Content-Length: 186
Date: Thu, 24 Sep 2015 15:39:12 GMT
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="UTF-8"?>
<ReplicationConfiguration>
  <Rule>  
     <RTC>
        <Status>enabled</Status>
     </RTC>
     <PrefixSet>
        <Prefix>source1</Prefix>
        <Prefix>video</Prefix>
     </PrefixSet>
     <Action>PUT</Action>
     <Destination>
        <Bucket>destbucket_test</Bucket>
        <Location>oss-cn-beijing</Location>
        <TransferType>oss_acc</TransferType>
     </Destination>
     <HistoricalObjectReplication>enabled</HistoricalObjectReplication>
      <SyncRole>aliyunramrole</SyncRole>
      <SourceSelectionCriteria>
         <SseKmsEncryptedObjects>
           <Status>Enabled</Status>
         </SseKmsEncryptedObjects>
      </SourceSelectionCriteria>
      <EncryptionConfiguration>
           <ReplicaKmsKeyID>c4d49f85-ee30-426b-a5ed-95e9139d****</ReplicaKmsKeyID>
      </EncryptionConfiguration>     
  </Rule>
</ReplicationConfiguration>

解決方案

確保資料複製規則中指定的目標Bucket名稱符合Bucket命名規則。

  • Bucket名稱在OSS範圍內必須全域唯一。

  • 只能包括小寫字母、數字和短劃線(-)。

  • 必須以小寫字母或者數字開頭和結尾。

  • 長度為3~63個字元。

相關文檔

儲存空間命名