Catch-all rule crashes routing policy initialization on 3scale
Issue
- When I set the catch-all rule as described in the document, APIcast fails to load the routing policy.
{
"condition": {
"combine_op": "and",
"operations": []
},
"url": "http://example.com:80",
"replace_path": "/403error"
}
2020/11/17 07:57:32 [error] 31#31: *2584291 [lua] policy_chain.lua:103: load_policy(): Policy routing crashed in .new(). It will be ignored., context: ngx.timer#015
2020/11/17 07:57:32 [warn] 31#31: *2584291 [lua] configuration.lua:76: build_policy_chain(): failed to load policy: routing version: builtin err: /opt/app-root/src/src/apicast/policy/routing/rule.lua:47: attempt to get length of field 'operations' (a nil value), context: ngx.timer#015
Environment
- Red Hat 3scale API Management
- 2.7.0 On-premises
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.