BUG/MINOR: http_ana: make sure redirect flags don't have overlapping bits
authorJerome Magnin <jmagnin@haproxy.com>
Thu, 27 Feb 2020 22:36:56 +0000 (23:36 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 31 Mar 2020 16:08:48 +0000 (18:08 +0200)
commit637c74833073d017a8520ec39c5be922567e3e6f
tree13cdcc96ad8582c088ed5d3268f718a1640d69fe
parent7351c78970ccbf828dc4db2e0ff9bbe02ab3e194
BUG/MINOR: http_ana: make sure redirect flags don't have overlapping bits

commit c87e46881 ("MINOR: http-rules: Add a flag on redirect rules to know the
rule direction") introduced a new flag for redirect rules, but its value has
bits in common with REDIRECT_FLAG_DROP_QS, which makes us enter this code path
in http_apply_redirect_rule(), which will then drop the query string.
To fix this, just give REDIRECT_FLAG_FROM_REQ its own unique value.

This must be backported where c87e46881687b8ddb9b3f459e60edb1e8d7c5d7c is backported.

This should fix issue 521.

(cherry picked from commit 967d3cc1057f1c2e83b7969db1406104fbf843df)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/types/http_ana.h