Forum Discussion
iRule syntax change in upgrade to 11.5.0
Hello all,
I have upgraded our LTM from 11.4.3 to 11.5.0 at request of F5 support to fix an unrelated issue we were having.
However, this seems to have broken one of the iRules we have in place that is used for the F5 to front http based servers as https using a very useful DevCentral post - https://devcentral.f5.com/wiki/iRules.HTTPS-offload-rewriting.ashx
Since the upgrade to 11.5.0 and with this iRule assigned to my virtual server the connection fails with the following logged in the Local Traffic log -
"Status Code 01220001 / TCL error: /Common/Rewrite-HTTP - Operation not supported (line 1) invoked from within "HTTP::is_redirect""
I have tried a bit of tweaking to get this working, predominately removing the HTTP::is_redirect references, but I cannot get the rule to behave as it did pre 11.5.0.
Does anyone have an idea as to how I can make this 11.5.0 compliant?
Many thanks,
SjW
Hello all,
F5 have identified this as a bug to be addressed in the next 11.5.1 hotfix to be released, 'ID452387 "HTTP::header is redirect" fails to work correctly'
For reference, the iRule will work if the 'HTTP::is_redirect' reference is removed - my issue was a bit more involved that simply this HTTPS to HTTP redirect not working.
Thanks,
Scott
- JGCumulonimbus
Issue fixed 11.5.1 HF5 now.
- JGCumulonimbus
This issue is fixed v11.6.0 according to its release notes:
http://support.f5.com/kb/en-us/products/big-ip_ltm/releasenotes/product/relnote-ltm-11-6-0.html
- Mark_van_DCirrostratus
Just reading through the 11.5.1 HF3 release notes this issue does not appear to be addressed. Does anyone know if this is still being addressed? I'd prefer not having to rework existing irules.
- Kevin_StewartEmployee
This is indeed an issue with 11.4. You can use something like the following as a workaround:
when HTTP_RESPONSE { if { [HTTP::header exists Location] } { ...this is a redirect response ... } }
- nitassEmployee
Can you give an example?
if { [HTTP::status] == 301 or [HTTP::status] == 302 } { do something }
- nitassEmployee
Does anyone know if this has yet been fixed?
i understand it could be included in the next roll up. anyway, isn't checking HTTP header status usable?
- Jon_SNimbostratusCan you give an example?
- nitass_89166Noctilucent
Does anyone know if this has yet been fixed?
i understand it could be included in the next roll up. anyway, isn't checking HTTP header status usable?
- Jon_SNimbostratusCan you give an example?
- Jon_SNimbostratus
Does anyone know if this has yet been fixed? I think I might still be having issues trying to use HTTP::is_redirect in 11.5 HF2
- sjw1875_136904Altostratus
My mistake - 11.4.1 HF3.
- JGCumulonimbus
Where did you get 11.4.3?
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