rory_7
Mar 23, 2023Nimbostratus
iRule error undefined procedure, that hasn't been reported
I tried to create irule like below (part of the entire code)
"rules": [
{
"actions": [
{
"event": "request",
"location": "http://example.com",
"type": "httpRedirect"
}
],
"conditions": [
{
"all": {
"caseSensitive": false,
"operand": "equals",
"values": [
"examplea&*d;d"
]
},
"name": "exampleamp",
"type": "httpHeader"
}
],
"label": "",
"name": "l7policy_23430070-92c8-442a-aae5-4503816e6ddb",
"remark": ""
}
],
"strategy": "first-match"
and an error occurs,
nfv-lb-f5-0.skynet.local mcpd[6906] 01070712 Caught configuration exception (0), /Common/__appsvcs_update:14: error: [undefined procedure: d][d \} case-insensitive name exampleamp \} \} actions replace-all-with \{ 0 \{ http-reply request redirect location \"http://example.com\" \} \} \} \} strategy /Common/first-match legacy requires replace-all-with \{ http \} controls replace-all-with \{ forwarding \}]
could anyone tell me why this error occurred? After getting this error, I simply changed name (http header key) that starts with Upper Case Letter (ex. My_header) and that one worked just fine. It seems like although the AS3 declaration contains "case-insensitive", somehow f5 cannot handle http header starting with lowercase letter.
(error happend in two OS version: BIG-IP 13.1.3.6 Build 0.21.4 Engineering Hotfix, BIG-IP 16.1.3.1 Build 0.0.11 Point Release 1)