BUG/MINOR: http-rules: Fix ACLs parsing for http deny rules
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Jun 2020 07:32:01 +0000 (09:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Jun 2020 07:32:03 +0000 (09:32 +0200)
commit9467f18d32e97e6063329fc613018188346fc1cf
tree56bf33faa18bd01d938d6b11a61672761e33dc6a
parentddfe0743d8986a1ff71cba5e5ac863e69a4e8e2a
BUG/MINOR: http-rules: Fix ACLs parsing for http deny rules

The parsing of http deny rules with no argument or only the deny_status argument
is buggy if followed by an ACLs expression (starting with "if" or "unless"
keyword). Instead of using the proxy errorfiles, a dummy error is used. To fix
the bug, the parsing function must also check for "if" or "unless" keyword in
such cases.

This patch should fix the issue #720. No backport is needed.
reg-tests/http-errorfiles/http_errors.vtc
src/http_act.c