You need to enable JavaScript to run this app.
导航
0025-00000008
最近更新时间:2024.01.25 16:11:03首次发布时间:2024.01.05 16:32:28

问题描述

创建桶清单规则时携带的 MD5 与数据生成的 MD5 值不匹配。

问题原因

创建桶清单规则时,Header 中 Content-MD5 字段携带的 MD5 值与服务端生成的 MD5 值不匹配。

问题示例

您在设置桶清单规则时,未填写正确的 MD5 值。

PUT /?inventory&id=report1 HTTP/1.1
 Host: BucketName.tos-cn-beijing.volces.com
 Date: Mon, 31 Oct 2016 12:00:00 GMT
 Authorization: authorization string
 Content-Length: length
 Content-MD5: ""
{
  "InventoryConfiguration": {
    "Id": "id",
    "IsEnabled": "true",
    "Filter": {
      "Prefix": "prefix"
    },
    "Destination": {
      "TOSBucketDestination": {
        "Format": "CSV",
        "AccountId": "2000000000000000", 
        "Role": "TosArchiveTOSInventory",
        "Bucket": "destination-bucket",
        "Prefix": "prefix1"
      }
    },
    "Schedule": { "Frequency": "Daily" },
    "IncludedObjectVersions": "All",
    "OptionalFields": {
      "Field": [
        "Size",
        "LastModifiedDate",
        "ETag",
        "StorageClass",
        "IsMultipartUploaded",
        "EncryptionStatus",
        "CRC64",
        "ReplicationStatus"
      ]
    }
  }
}

解决方案

请传递正确的 MD5 值。