Forum Discussion
iRules fail in v14.1.2.3
In version 14.1.0, once you have executed a HTTP::redirect/HTTP::respond command, any further reference to the contents of HTTP:: functions (uri, host, path etc) cause an error.
You can use HTTP::has_responded to determine if a previous irule has already executed HTTP::redirect/HTTP::respond.
K23237429: TCL error: ERR_NOT_SUPPORTED after upgrade to version 14.1.0 or later
- ZevMar 17, 2020Altostratus
SB,
Thanks, this is the most direct answer I have found. I am not exactly sure how I would integrate HTTP::has_responded in to this 2nd iRule as I need the rewrites to function/take precedence. It seems the order is different as well. I was just beginning to understand iRules in v12 now I am a little lost again.
- Simon_BlakelyMar 18, 2020Employee
First - always use priority statements to control event execution order if you are using multiple irules with the same event.
Second, at the start of the earliest executing event, set variables that contain the things you might need in later irule events (HTTP::host, HTTP::uri, HTTP::path, etc). Then refer to the variables rather than the HTTP:: functions.
Use the following code fragment after a HTTP::redirect/HTTP::respond
... HTTP::redirect "<location>" event disable return ...
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com