David_Stout
Dec 17, 2014Nimbostratus
String Manipulation and TCL Error
I'm up against a wall with my limited iRule knowledge so would like some input here.
We're taking some data within the original URI request and manipulating it into a new format so it's compatible with our environment.
Currently I'm getting this error
TCL error: - can't read "UserID": no such variable while executing "set query_find "accountname=i%3A0%C7%B5%2Et%7Cadfs%20stage%7C${UserID}""
I'm using this in the iRule to transform the query string with the right most characters after the second | being the UserID. However it isn't working as in previous deployments.
set query_find "accountname=i%3A0%C7%B5%2Et%7Cadfs%20stage%7C${UserID}"
set query_replace "p%5Bid%5D=i%3A0%C7%B5.t%7Cadfs%7C${UserID}&p%5BidType%5D=adfs"
The decode for the query_find is accountname=i:0ǵ.t|adfs stage|${UserID}
How am I going to get ${UserID} to be the actual string in the URI and populate the variable correctly ?
Hopefully that makes sense. I'm still new on iRules.