landro / TesTcl

when you don't have the balls to test your F5 BIG-IP iRules directly in production
https://testcl.com
BSD 3-Clause "New" or "Revised" License
98 stars 30 forks source link

Implementing K23237429 #66

Open olanystrom opened 3 years ago

olanystrom commented 3 years ago

New feature idea. Error checking according to K23237429 K23237429: TCL error: ERR_NOT_SUPPORTED after upgrade to version 14.1.0 or later

After version 14.1.0 the new error 01220001:3: TCL error: /Common/<iRule_name> <HTTP_REQUEST> - ERR_NOT_SUPPORTED (line 1) invoked from within "HTTP::host" exist.

HTTP iRule commands that inspect HTTP state after the commands HTTP::respond, HTTP::redirect and HTTP::retry will now return errors instead of returning corrupt data.

Can testcl set HTTP::has_responded and return error if the iRule is trying to utilize HTTP context commands after already sending an HTTP response or redirect.