Forum Discussion
list element in quotes followed by <something> instead of space
This is because if http cookie name's quote is not one pair quote if it has ,it will cause issue for F5 foreach command.
Irule tries to find name in "",if there is other " ,it will interpret it as invalid string.
For example:
Dec 4 04:52:57 slot2/tmm err tmm[5370]: 01220001:3: TCL error: modify-remove-cookie - list element in quotes followed by ":"Pittsburgh" instead of space while executing "foreach cookie [HTTP::cookie names] { switch -glob -- $cookie {
If cookie name is "xyz":"Pittsburgh,it will generate this issue and goes to overflow page.
This happends because client doesn't obey http token and rules. It is also because foreach check "" pair: "test" is legal "test"p"test" or "test"xxy are illegal
This one will fix it: foreach cookie [string map [list "\"" ""][HTTP::cookie names] ]
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