You need to enable JavaScript to run this app.
对象存储

对象存储

复制全文
11-MIRROR
0011-00000006
复制全文
0011-00000006

问题描述

镜像回源配置非法。

问题原因

用户设置桶镜像回源规则时,某条规则的 Condition 配置中,KeySuffix 取值长度超过 512。

问题示例

您进行桶镜像回源配置时,Condition配置中的 KeySuffix 取值非法。

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":"xxx",
        "Condition":{
            "HttpCode":404,
            "KeySuffix":"...省略513个字符..."
        },
        "Redirect":{
            "PublicSource":{
                "SourceEndpoint":{
                    "Primary":["http://abc.123/"]
                }
            },
            "PassQuery":true,
            "FollowRedirect":true,
            "MirrorHeader":{"PassAll":true}
        }
    }]
}

解决方案

确保 Condition 配置中的 KeySuffix 取值合法。

最近更新时间:2024.01.05 16:32:18
这个页面对您有帮助吗?
有用
有用
无用
无用