0033-00000009
Problem description
The value of the TruncatePath parameter conflicts with the value of the AllowTruncateQueryString parameter in the hotlink protection configuration of the bucket.
Causes
You called the PutBucketReferer operation to modify the hotlink protection configuration of the bucket. In the configuration that you submitted, the value of the TruncatePath parameter is true, but the value of the AllowTruncateQueryString parameter is false. The two values conflict, and the operation returns this error.
Examples
In the XML configuration of the following request, the value of the TruncatePath parameter conflicts with the value of the AllowTruncateQueryString parameter. As a result, the request fails.
PUT /?referer HTTP/1.1
Date: Fri, 24 Feb 2017 03:15:40 GMT
Content-Length: 322
Content-Type: application/xml
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
<AllowEmptyReferer>false</AllowEmptyReferer>
<AllowTruncateQueryString>false</AllowTruncateQueryString>
<TruncatePath>true</TruncatePath>
<RefererList>
<Referer>http://www.aliyun.com</Referer>
</RefererList>
</RefererConfiguration>
Solutions
If you set the TruncatePath parameter in the request body to true, you must also set the AllowTruncateQueryString parameter to true. The following example shows a valid request:
PUT /?referer HTTP/1.1
Date: Fri, 24 Feb 2017 03:15:40 GMT
Content-Length: 322
Content-Type: application/xml
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
<AllowEmptyReferer>false</AllowEmptyReferer>
<AllowTruncateQueryString>true</AllowTruncateQueryString>
<TruncatePath>true</TruncatePath>
<RefererList>
<Referer>http://www.aliyun.com</Referer>
</RefererList>
</RefererConfiguration>