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 2009/03/09 18:20:41 UTC

DO NOT REPLY [Bug 46824] New: RemoveOutputFilter will not work for Filters added in server config

https://issues.apache.org/bugzilla/show_bug.cgi?id=46824

           Summary: RemoveOutputFilter will not work for Filters added in
                    server config
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_mime
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: heinrich.mislik@univie.ac.at


This config-snippet at server config will not work:

    AddOutputFilter INCLUDES html htm shtm shtml
    <Directory /u/www>
    RemoveOutputFilter html
    </Directory>

.html files still have the INCLUDE filter activ.

The Reason is, that according to 

http://perl.apache.org/docs/2.0/user/config/custom.html#Merging_Order_Consequences

the serve-config is merged after all others, but merge_mime_dir_configs from
mod_mime.c assumes, that merging is done top down.

Workaround is to put AddOutputFilter into <Directory /> section.

Solutions possible: disallow AddOutputFilter in server config. Put warning into
Documentation. Repair merge_mime_dir_configs, but I think, this may become
complicated.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46824] RemoveOutputFilter will not work for Filters added in server config

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46824

Matthew Kent <mk...@magoazul.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mkent@magoazul.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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