Forum Discussion
Andrew_Bretten_
Nimbostratus
Jan 25, 2012iRule parser adds characters to my code ?
So this is my original code I type in the Irule box.
when DNS_REQUEST
{
set crday [clock format [clock seconds] -format {%a} ]
log local0. "IR-VPNautomaint: Test $crday"
}
I click update, the screen refreshes and I see
set crday [clock format [clock seconds] -format {%25a} ]
I click update again and I see
set crday [clock format [clock seconds] -format {%2525a} ]
I click update again and I see
set crday [clock format [clock seconds] -format {%252525a} ]
and so on.......
4 Replies
- Colin_Walker_12Historic F5 AccountWow, that's a new one to me! Interesting. What version are you running so I can try to reproduce, hopefully?
Also, is it other characters as well? (%b %c, etc.) or just %a?
Thanks,
Colin - Andrew_Bretten_
Nimbostratus
10.2.1 Build 511.0 HF3 yes it happens with other formatting codes I had originally, I just chopped down the code to make the example shorter. - hoolio
Cirrostratus
This looks like a bug in the GTM iRule parsing logic where the percent is being URL encoded. I'd guess it's probably a known issue, but you could open a case with F5 Support to confirm/escalate it.
You can repro it using a simple iRule:when DNS_REQUEST { log local0. "%" }
Aaron - hoolio
Cirrostratus
I think it's specific to the GUI parsing of GTM iRules as the iRule editor can save/reload a rule with a % normally.
Aaron
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
