cjunior_138458
Nov 26, 2015Altostratus
LTM Policy http-reply issue
Hi,
We are trying to migrate to v12 and we are facing a problem about the SOL14996 that is working fine in v11.6: Even setting the host part as static, we can't see the [HTTP::uri] being replaced.create ltm policy test_policy rules add { https_reply { actions add { 0 { http-reply redirect location https://mysite.net[HTTP::uri] } } } } strategy first-match requires add { http } controls add { forwarding }
BIG-IP response:
HTTP/1.0 302 Found
Location: https://mysite.net[HTTP::uri]
Server: BigIP
Connection: close
Content-Length: 0
This is a SOL14996 example that fails in v12 (v11.6 is ok):
create /ltm policy myHTTPtoHTTPSpolicy controls add { forwarding } requires add { http } strategy first-match rules add { myHTTPtoHTTPSrule { actions add { 0 { http-reply redirect location "https://[getfield [HTTP::host] \":\" 1][HTTP::uri]" } } } }
01071748:3: Policy '/Common/myHTTPtoHTTPSpolicy', rule 'myHTTPtoHTTPSrule'; invalid url, value 'https://[getfield [HTTP::host] ":" 1][HTTP::uri]'.
So, I really don't want to rewrite this in iRule, but for now I can't see another way.
Is it a BUG or needs some trick?Thank you!