Forum Discussion
Arie_90212
Nimbostratus
Feb 06, 2015Error: use curly braces to avoid double substitution
Upgrading from 11.3 to 11.6 I'm encountering this error:
warning: [use curly braces to avoid double substitution][[string length "/contact"]]
Code:
HTTP::path /[ string range [HTTP::path] [expr...
StephanManthey
Nacreous
Feb 06, 2015Hi Arie,
I just gave it a try on v11.6.0HF3:
when HTTP_REQUEST {
log local0. "path: [HTTP::path]; extracted <[string range [HTTP::path] [expr {[string length "/contact"] + 1}] end]>"
HTTP::path "/[string range [HTTP::path] [expr {[string length "/contact"] + 1}] end]"
log local0. "new path: [HTTP::path]"
}
Log output as expected:
tail -n 0 -f /var/log/ltm | grep -oE 'Rule .*$'
Rule /Common/rule_string : path: /contact/stephan; extracted
Rule /Common/rule_string : new path: /stephan
Verification fine as well:
tmsh list ltm rule rule_string > /shared/rule_verify
tmsh load sys config merge verify file /shared/rule_verify
Validating configuration...
/shared/rule_verify
Thanks, Stephan
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
