You need to enable JavaScript to run this app.
导航

0011-00000026

最近更新时间2024.01.25 15:54:48

首次发布时间2024.01.05 16:32:19

问题描述

镜像回源配置非法。

问题原因

用户设置桶镜像回源规则时,当 FixedEndpoint 字段取值为 true 时,RedirectType 字段取值非 Async,导致请求错误。

问题示例

您进行桶镜像回源配置时,当 FixedEndpoint 字段取值为 true 时,RedirectType 字段取值非 Async

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
        },
        "Redirect":{
            "RedirectType": "Mirror",
            "PublicSource":{      
                "FixedEndpoint": true,
                "SourceEndpoint":{ 
                    "Primary":["http://abc.123/"]
                }
            },
            "PassQuery": true,     
            "MirrorHeader":{"PassAll": true}
        }
    }]
}

解决方案

确保 FixedEndpoint 字段取值为 true 时,RedirectType 字段取值为 Async