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

Torch Object Storage

Copy page
Download PDF
14-NOTIFICATION
0014-00000021
Copy page
Download PDF
0014-00000021
Problem description​
The length of the value in the set FilterRule exceeds the limit.​
Root cause​
When creating event notification rules, the length of the value in FilterRule exceeds the limit.​
Example​
  • ​
    PUT /?notification HTTP/1.1​
    Host: <Bucket name>.<TOS endpoint>​
    Date: GMT Date​
    Authorization: authorization string​
    {​
    "CloudFunctionConfigurations": [​
    {​
    "Events": [​
    "tos:ObjectCreated:*",​
    "tos:ObjectRemoved:*"​
    ],​
    "Filter": {​
    "TOSKey": {​
    "FilterRules": [​
    {​
    "Name": "prefix",​
    "Value": "test_"​
    },​
    {​
    "Name": "suffix",​
    "Value": ".jpg"​
    }​
    ]​
    }​
    },​
    "RuleId": "string",​
    "CloudFunction": "string"​
    }​
    ]​
    }​
    ​
  • ​
    PUT /?notification_v2 HTTP/1.1​
    Host: <Bucket name>.<TOS endpoint>​
    Date: GMT Date​
    Authorization: authorization string​
    {​
    "Rules":[​
    {​
    "Events":[​
    "tos:ObjectCreated:*",​
    "tos:ObjectRemoved:*"​
    ],​
    "Filter":{​
    "TOSKey":{​
    "FilterRules":[​
    {​
    "Name":"prefix",​
    "Value":"test_"​
    },​
    {​
    "Name":"suffix",​
    "Value":".jpg"​
    }​
    ]​
    }​
    },​
    "RuleId":"string",​
    "Destination":{​
    "VeFaaS":[​
    {​
    "FunctionId":"function_id"​
    }​
    ]​
    }​
    }​
    ],​
    "Version": "1698031811529301000"​
    }​
    ​
Solution​
Modify the Value in FilterRules to be within 255 characters.​
Last updated: 2026.10.08 17:20:28