You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2026/05/03 17:27:07 UTC
[Bug 65463] AddOutputFilterByType does not work for user-defined filters
https://bz.apache.org/bugzilla/show_bug.cgi?id=65463
--- Comment #1 from Rich Bowen <rb...@apache.org> ---
Documented the limitation in the AddOutputFilterByType directive docs.
The underlying issue is that mod_filter's filter_bytype1() creates
an internal wrapper filter with a "BYTYPE:" prefix on the name
(e.g. "BYTYPE:myfilter"). When the harness calls the provider's
filter function, the modified name is passed through. Standard
compiled-in filters like DEFLATE don't care about the name, but
mod_ext_filter and mod_lua's LuaOutputFilter look up their
configuration by filter name and fail when they see the prefixed
version.
Added a warning note pointing users to FilterDeclare/FilterProvider
with a %{CONTENT_TYPE} expression as a workaround.
The code bug remains — the BYTYPE: prefix mangling should ideally
be transparent to provider filters.
Docs fixed in r1933776 (trunk), r1933777 (2.4).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org