BUG/MINOR: config: Fix parsing of accept-invalid-http-{request,response}
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Dec 2024 09:47:35 +0000 (10:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2024 10:05:31 +0000 (11:05 +0100)
commit54e588b293c2b12717e85666fcbd7357f8f2d225
tree6f41250b89dd2df41d12509b25a0e43aefd591f6
parent0f0c40fa7b58898c1d93bcd118034583cc5843a6
BUG/MINOR: config: Fix parsing of accept-invalid-http-{request,response}

These options are now deprectated, but the proxy capabilities are not
properly checked during the configuration parsing leading to always ignore
these options. This is now fixed by checking the frontend capability for
"accept-invalid-http-request" option and the backend capability for
"accept-invalid-http-response" option.

In addition, the messages about the deprecation of these options are now
emitted with ha_warning() instead of ha_alert() because they are only
warnings and not errors.

This patch should fix the issue #2806. It must be backported to 3.1.

(cherry picked from commit bc453c51066beb8ed05baa6636fcb471b9d103ca)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/cfgparse-listen.c