Forum Discussion
Sekhar
Nimbostratus
Jun 30, 2015TCL Error
Hi All,
We have recently upgraded to 11.5.1 HF9 from 11.4.1 HF8. After upgarding the box we are seeing this TCL error
"TCL error: /Common/_sys_https_redirect - Operation not supported. Mul...
Hannes_Rapp
Nimbostratus
Jun 30, 2015You're seeing this error because multiple "HTTP::redirect" or "HTTP::response" are being triggered per single request. No more than one redirect statement can function per request. You should not ignore that, and fix the iRules with a proper use of "event disable" function.
To get rid of this error, use the "event disable" command after invoking your redirect. Below is one sample how you can use it.
iRule1
when HTTP_REQUEST {
if { ([HTTP::host] == "asd.asd.asd") && ([HTTP::path] == "/") } {
HTTP::respond 302 location "https://[HTTP::host][HTTP::uri]"
event disable The HTTP response event in second iRule is not processed
TCP::close The connection record is removed
}
}
iRule2
when HTTP_REQUEST {
if { ([HTTP::host] == "asd.asd.asd") && ([HTTP::path] == "/products") } {
HTTP::respond 302 location "http://foo.bar/products"
event disable Not required here, but still recommended
TCP::close
}
}
Hannes_Rapp
Nimbostratus
Jun 30, 2015Yep, the default iRule you're using explicitly redirects every request to HTTPS protocol. This means any redirect/respond logic in your custom iRules will not work. Can you share iRules as well as LTM policies applied to your Virtual Server? This way we could make sure what would be the best option to proceed. If it's no LTM policies and no other iRules are in use besides the _sys_https_redirect, it could be a bug as Walter mentioned.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects