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

Torch Object Storage

Copy page
Download PDF
10-POLICY
0010-00000006
Copy page
Download PDF
0010-00000006
Problem description​
Bucket policy configuration is invalid.​
Root cause​
When setting a bucket policy, the Principal or NotPrincipal value in a policy is invalid, such as being empty or not matching the request protocol format.​
Example​
You set an empty Principal value in a bucket policy.​
​
PUT /?policy HTTP/1.1​
Host: <Bucket name>.<TOS endpoint>​
Date: Fri, 30 Jul 2021 13:59:18 GMT​
Authorization: authorization xxx​
​
{​
"Version": "2012-10-17",​
"Statement": [​
{​
"Sid": "1",​
"Effect": "Allow",​
"Principal": "",​
"Action": ["tos:Get*"],​
"Resource": ["trn:tos:::bucketname/*"]​
} ​
]​
}​
​
Solution​
Refer to bucket policy templates and parameter descriptions to properly construct the bucket policy and ensure the Principal or NotPrincipal values are valid in a single policy.​
Last updated: 2025.10.11 17:59:23