Hello all below is the issue to I am having and the irule we tossed together. I am trying understand if this is a possible bug with BIG-IP 9.3.1 Build 69.0.
I’ve attached the log output from a sample session. We’re getting the following (removed https:// to make the link not active and marked two sections in bold and blue to indicate where the error lies):
HTTP_REQUEST: newString2 1 {fss.stage.gecompany.com/fss/idp/startSSO.ping?PartnerSpId=webex.comACSIdx=2TARGET3dhttps3a2f2femeetings-test2.webex.com2femeetings-test22fj.php3fED3d14122433226UID3d101145530726PW3dNODBlNzAxNjE226RT3dMiMxMQ253D253D
If we plug in the missing ampersands and replace the encoded equals sign (3d) with an equals sign (red section) and percent signs (blue sections), we get the following:
That works perfectly. So, we just need to figure out why the & and = are being removed from $fssString and why the % signs are being removed from newstring2.
here is the rule we are using
when HTTP_REQUEST {
log local0. “WebEx iRule HIT”
if {[HTTP::uri] contains “redirectWebEx”}{
your example string
set origString [HTTP::host][HTTP::uri]
log local0. “origString {$origString}”
break it up using ? as delimiter
Note use of ‘?’ as url-split, instead of ‘TARGET’ - Allan
set tempString [split $origString “?”]
log local0. “tempString {$tempString}”
put back together anything past the first ?, aka the ‘query string’
set queryString [join [lrange $tempString 1 end] “?”]
log local0. “queryString {$queryString}”
set value for FSS/Ping string
build the new string using the F5 URI::encode command on the entire query string
set newString2 “[lindex $fssString 0][URI::encode $queryString]”
log local0. “newString2 1 {$newString2}”
HTTP::redirect $newString2
}
else {
log local0. “WebEx_irule_missed: [HTTP::uri]”
}
}
Thanks in advance !!!