镜像回源配置非法。
用户设置桶镜像回源规则时,Transform 配置中的 ReplaceWith 取值长度超过 512。
您进行桶镜像回源配置时,Transform 配置中的 ReplaceWith 取值长度超过 512。
PUT /?mirror HTTP/1.1
Host: bucketname.tos-cn-beijing.volces.com
Date: Fri, 30 Jul 2021 13:59:18 GMT
Authorization: authorization xxx
{
"Rules":[{
"ID":"1",
"Condition":{
"HttpCode":404,
"KeyPrefix":"object-key-prefix",
"KeySuffix": "object-key-suffix"
},
"Redirect":{
"RedirectType": "Mirror",
"FetchSourceOnRedirect": false,
"PublicSource":{
"SourceEndpoint":{
"Primary":["http://abc.123/"]
}
},
"PassQuery": true,
"FollowRedirect": true,
"MirrorHeader":{
"PassAll": true,
"Pass": ["aaa", "bbb"],
"Remove": ["xxx", "yyy"]
},
"Transform": {
"WithKeyPrefix": "addtional-key-prefix",
"WithKeySuffix": ".addtional-key-suffix",
"ReplaceKeyPrefix": {
"KeyPrefix": "key-prefix",
"ReplaceWith": "...此处省略513个字符..."
}
}
}
}]
}
确保 Transform 配置中的 ReplaceWith 取值合法。