]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: filters: Reject id-less implicit instances of multi-instance classes
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Nov 2026 08:09:19 +0000 (09:09 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Nov 2026 14:53:26 +0000 (15:53 +0100)
commit234a834317c51bbdcb5712596a570db36f4f2cb2
tree201d9466fdb74e9ffcf270587afde240cd1afc21
parent8fc09da211773e0eb7a8de8b9dc458c9e2fd9f35
BUG/MINOR: filters: Reject id-less implicit instances of multi-instance classes

An id is mandatory when a filter class allows several instances per proxy,
and this was verified when a filter-config directive was parsed. But it was
not when an implicit instance was created by flt_add_implicit_instance()
called from another directive: for such a class, an instance without id
could not be distinguished from a second one.

Like for an explicit declaration, the implicit declaration is now reported
and ignored if no id is provided for such a class. All the in-tree
directives creating implicit instances of a multi-instance class (the
cache-store rules) already pass the cache name as id, so nothing changes for
existing configurations.

The filters documentation was updated accordingly.

No backport needed.
doc/internals/api/filters.txt
src/filters.c