You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
11-MIRROR
0011-00000023
Copy page
Download PDF
0011-00000023
Problem description​
Invalid mirror origin configuration.​
Root cause​
When setting bucket mirror origin rules, the KeyPrefix value length in the Transform configuration exceeds 512.​
Example​
When configuring bucket mirror origin, the KeyPrefix value length in the Transform configuration exceeds 512.​
​
PUT /?mirror HTTP/1.1​
Host: <Bucket name>.<TOS endpoint>​
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": "...513 characters omitted here...",​
"ReplaceWith": "replace-with"​
}​
}​
}​
}]​
}​
​
Solution​
Ensure the KeyPrefix value in the Transform configuration is valid.​
Last updated: 2025.10.11 17:59:21