]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-ana: Throw a 500 error if after-response ruleset fails on errors
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Apr 2020 12:58:38 +0000 (14:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 05:20:44 +0000 (07:20 +0200)
commit8d945d6dd94fe6d46a9720b0be6a8a15ec5fe549
tree9e17ed55a90476f410e6896ba8366b6416657634
parent2be58f758402010f35d67279bec7125c9665e936
BUG/MINOR: http-ana: Throw a 500 error if after-response ruleset fails on errors

It is the intended behaviour. But because of a bug, the 500 error resulting of a
rewrite failure during http-after-response ruleset evaluation is also
rewritten. So if at this step, if there is also a rewrite error, the session is
closed and no error message is returned.

Instead, we must be sure to not evaluate the http-after-response rules on an
error message if it is was thrown because of a rewrite failure on a previous
error message.

It is a 2.2-dev2+ bug. No need to backport. This patch should fix the issue
src/http_ana.c