]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: acl: fix sample expression error reporting
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 15:02:46 +0000 (16:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 15:02:46 +0000 (16:02 +0100)
commit3d536ac37858f9ce2eac2ee8bed42af03ef05fef
treecab40b818411f0eaae7c533ea1b8be59b4c0a7fa
parent681e49db491a05fe48704c68f79d188f1d5199fb
BUG/MINOR: acl: fix sample expression error reporting

ACL parse errors are not easy to understand since recent commit 348971e
(MEDIUM: acl: use the fetch syntax 'fetch(args),conv(),conv()' into the
ACL keyword) :

[ALERT] 339/154717 (26437) : parsing [check-bug.cfg:10] : error detected while parsing a 'stats admin' rule : unknown ACL or sample keyword 'env(a,b,c)': invalid arg 2 in fetch method 'env' : end of arguments expected at position 2, but got ',b,c'..

This error is only relevant to sample fetch keywords, so the new form is
a bit easier to understand :

[ALERT] 339/160011 (26626) : parsing [check-bug.cfg:12] : error detected while parsing a 'stats admin' rule : invalid arg 2 in fetch method 'env' : end of arguments expected at position 2, but got ',b,c' in sample expression 'env(a,b,c),upper'.

No backport is needed.
src/acl.c
src/sample.c