haproxy/reg-tests/http-rules
Christopher Faulet 5796228aba BUG/MEDIUM: rules: Be able to use captures defined in defaults section
Since the 2.5, it is possible to define TCP/HTTP ruleset in defaults
sections. However, rules defining a capture in defaults sections was not
properly handled because they was not shared with the proxies inheriting
from the defaults section. This led to crash when haproxy tried to store a
new capture.

So now, to fix the issue, when a new proxy is created, the list of captures
points to the list of its defaults section. It may be NULL or not. All new
caputres are prepended to this list. It is not a problem to share the same
defaults section between several proxies, because it is not altered and we
take care to not release it when corresponding proxies are freed but only
when defaults proxies are freed. To do so, defaults proxies are now
unreferenced at the end of free_proxy() function instead of the beginning.

This patch should fix the issue #1674. It must be backported to 2.5.
2022-04-25 15:28:21 +02:00
..
1k.txt
acl_cli_spaces.vtc
agents.acl
converters_ipmask_concat_strcmp_field_word.map
converters_ipmask_concat_strcmp_field_word.vtc
default_rules.vtc BUG/MEDIUM: rules: Be able to use captures defined in defaults section 2022-04-25 15:28:21 +02:00
del_header.vtc
except-forwardfor-originalto.vtc
h1_to_h1c.vtc
h1or2_to_h1c.vtc
http_after_response.vtc
http_return.vtc
lf-file.txt
map_redirect-be.map
map_redirect.map
map_redirect.vtc
map_regm_with_backref.map
map_regm_with_backref.vtc
normalize_uri.vtc
path_and_pathq.vtc
strict_rw_mode.vtc