Forum Discussion
Demonio_21719
Nimbostratus
Oct 09, 2015Can't use non-numeric string as operand of "&&" in rule
Hello. When this irule runs the following error occurs:
/Common/SSL_Test - can't use non-numeric string as operand of "&&" while executing "if { $renegtried == 0 and [SSL::cert count] == 0 and (...
Demonio_21719
Nimbostratus
Oct 09, 2015Thanks for your help. I've applied but does not work:
- when HTTP_REQUEST {
- set uri [string tolower [HTTP::uri] ]
- /_hst name and ?_hst=1 parameter triggers client cert renegotiation
- if { !($renegtried) and ([SSL::cert count] == 0)
- and (([HTTP::uri] equals "/extern/test.jsp") or ([HTTP::uri] equal "/SO/services/dat") or * ([HTTP::uri] equal "/test/services/Tasacion") or [(HTTP::uri] equal "/Ex/services/pay"))
- } {
- log local0. "[IP::client_addr]:[TCP::client_port]: A log entry"
- HTTP::collect
- SSL::cert mode request
- SSL::renegotiate
- }
- }
- The error is this:
- :01070151:3: Rule [/Common/SSL_Test] error: /Common/Common/SSL_Test:12: error: [parse error: PARSE syntax 465 {syntax error in expression "!($renegtried)and ([SSL::cert count] == 0)and ...": variable references require preceding $}][{!($renegtried)and ([SSL::cert count] == 0)and (([HTTP::uri] equals "/extern/test.jsp") or ([HTTP::uri] equal "/SO/services/dat") or ([HTTP::uri] equal "/test/services/Tasacion") or [(HTTP::uri] equal "/Ex/services/pay"))}]
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