Revert "BUG/MINOR: http-rules: Replace path and query-string in "replace-path" action"
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Sep 2020 09:10:38 +0000 (11:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 7 Sep 2020 08:26:44 +0000 (10:26 +0200)
commit28616d973e9185e0152474bb1083145c46b90259
treebf8c032f25550a68bc57e7d87efecedefcf14c36
parent08cecfff3aba05621552318b919837b303d3abbd
Revert "BUG/MINOR: http-rules: Replace path and query-string in "replace-path" action"

This reverts commit 4b9c0d1fc08388bf44c6ebbd88f786032dd010fc.

Actually, the "replace-path" action is ambiguous. "set-path" action preserves
the query-string. The "path" sample fetch does not contain the query-string. But
"replace-path" action is documented to handle the query-string. It is probably
not the expected behavior. So instead of fixing the code, we will fix the
documentation to make "replace-path" action consistent with other parts of the
code. In addition actions and sample fetches to handle the path with the
query-string will be added.

If the commit above is ever backported, this one must be as well.

(cherry picked from commit 1fa0cc18e1c6dd5460492128b5b400d808f3c823)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 34b0840ec15e9c869f1bcbdfb4cfca119cb7a874)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/http_act.c
src/http_ana.c