BUG/MINOR: http-ana: Apply stop to the current section for http-response rules
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Nov 2021 15:33:25 +0000 (16:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Nov 2021 17:02:36 +0000 (18:02 +0100)
commit46f46df300b5258f05e3bcf72e409f8629e8b63f
tree4e043ef25bcd2cd35630c1022603c30a668ed8e0
parent15ae22c02cff36579be13c40bac1c37acc60d352
BUG/MINOR: http-ana: Apply stop to the current section for http-response rules

A TCP/HTTP action can stop the rules evaluation. However, it should be
applied on the current section only. For instance, for http-requests rules,
an "allow" on a frontend must stop evaluation of rules defined in this
frontend. But the backend rules, if any, must still be evaluated.

For http-response rulesets, according the configuration manual, the same
must be true. Only "allow" action is concerned. However, since the
beginning, this action stops evaluation of all remaining rules, not only
those of the current section.

This patch may be backported to all supported versions. But it is not so
critical because the bug exists since a while. I doubt it will break any
existing configuration because the current behavior is
counterintuitive.
reg-tests/http-rules/h1or2_to_h1c.vtc
src/http_ana.c