blob: 5946f0e48753b298c3c90e910af95ebaef666662 [file] [log] [blame]
Willy Tarreau1d7ca2e2013-12-13 01:32:09 +01001# This config file aims to trigger all error detection cases in the ACL
2# expression parser related to the fetch arguments.
3
4# silence some warnings
5defaults
6 mode http
7 timeout client 1s
8 timeout server 1s
9 timeout connect 1s
10
11frontend 1
12 bind :10000
13
14 # missing fetch method in ACL expression '(arg)'.
15 block if { (arg) }
16
17 # unknown fetch method 'blah' in ACL expression 'blah(arg)'.
18 block if { blah(arg) }
19
20 # missing closing ')' after arguments to fetch keyword 'req.hdr' in ACL expression 'req.hdr('.
21 block if { req.hdr( }
22
23 # cannot be triggerred : "returns type of fetch method '%s' is unknown"
24
25 # fetch method 'always_true' : no argument supported, but got 'arg' in ACL expression 'always_true(arg)'.
26 block if { always_true(arg) }
27
28 # fetch method 'req.hdr' : failed to parse 'a' as type 'signed integer' at position 2 in ACL expression 'req.hdr(a,a)'.
29 block if { req.hdr(a,a) }
30
31 # in argument to 'payload_lv', payload length must be > 0.
32 block if { payload_lv(0,0) }
33
34 # ACL keyword 'payload_lv' : expected type 'unsigned integer' at position 1, but got nothing.
35 block if { payload_lv }
36