Received: (qmail 36094 invoked by uid 65534); 17 Jan 2000 10:10:45 -0000 Message-Id: <20000117101045.36093.qmail@locus.apache.org> Date: 17 Jan 2000 10:10:45 -0000 From: Oliver Graf Reply-To: ograf@rz-online.net To: submit@bugz.apache.org Subject: RemoveHandler in .htaccess removes Handler for whole Server X-Send-Pr-Version: 3.110 >Number: 5597 >Category: general >Synopsis: RemoveHandler in .htaccess removes Handler for whole Server >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Jan 17 02:20:00 PST 2000 >Closed-Date: Wed Sep 13 17:22:11 PDT 2000 >Last-Modified: Wed Sep 13 17:22:11 PDT 2000 >Originator: ograf@rz-online.net >Release: 1.3.9 >Organization: >Environment: pgcc-2.91.66 Linux sky.rhein-zeitung.de 2.2.13-7mdk #1 Wed Sep 15 18:02:18 CEST 1999 i686 unknown >Description: I've set a Handler for all .html .htm .shtml documents to server-parsed. If I undo this in a .htaccess via RemoveHandler .html, the Handler is removed globally for all paths and virtservers. >How-To-Repeat: I can provide a test environment upon request. >Fix: no >Release-Note: >Audit-Trail: From: Oliver Graf To: submit@bugz.apache.org, apache-bugdb@apache.org Cc: ograf@rz-online.net Subject: general/5597: RemoveHandler in .htaccess removes Handler for whole Server Date: Mon, 17 Jan 2000 12:19:09 +0100 > >Category: general > >Responsible: apache > >Synopsis: RemoveHandler in .htaccess removes Handler for whole Server > >Arrival-Date: Mon Jan 17 02:20:00 PST 2000 Addition: this is a mod_mime problem, I did not changed the categorie. Configuration: my apache mas mod_ssl included. From: vsolve apache To: ograf@rz-online.net, submit@bugz.apache.org Cc: apbugs@Apache.Org Subject: Re:general/5597: RemoveHandler in .htaccess removes Handler for whole Server Date: Tue, 18 Jan 2000 05:32:56 -0800 (PST) Hi, You have removed the handler server-parsed associated with extension .html. This will remove the handler for .html files from all the paths and Virtual Hosts. Then, if you want to use the handler for the particular directory, You should add the directive AddHandler server-parsed .html in the .htaccess for that directory. For example, /htdocs/.htaccess: AddHandler server-parsed .html /htdocs/examples/.htaccess: RemoveHandler .html In the sub directory /htdocs/examples, Remove Handler directive will remove all the server-parsed handler associated with the extension .html for all the paths. So all the .html files will be treated as normal html file. Since we have AddHandler directive in the .htaccess of htdocs directory, all .html files will be parsed by the server in that directory. Similarly, you should use AddHandler in the main directory.Even if you used RemoveHandler in the sub directory, handler will be removed only for that sub directory. Regards, visolve_apache >Number: 5597 >Category: general >Synopsis: RemoveHandler in .htaccess removes Handler for whole Server >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Jan 17 02:20:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: ograf@rz-online.net >Release: 1.3.9 >Organization: apache >Environment: pgcc-2.91.66 Linux sky.rhein-zeitung.de 2.2.13-7mdk #1 Wed Sep 15 18:02:18 CEST 1999 i686 unknown >Description: I've set a Handler for all .html .htm .shtml documents to server-parsed. If I undo this in a .htaccess via RemoveHandler .html, the Handler is removed globally for all paths and virtservers. >How-To-Repeat: I can provide a test environment upon request. >Fix: no __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From: vsolve apache To: ograf@rz-online.net, submit@bugz.apache.org Cc: apbugs@Apache.Org Subject: Re:general/5597: RemoveHandler in .htaccess removes Handler for whole Server Date: Tue, 18 Jan 2000 05:32:56 -0800 (PST) Hi, You have removed the handler server-parsed associated with extension .html. This will remove the handler for .html files from all the paths and Virtual Hosts. Then, if you want to use the handler for the particular directory, You should add the directive AddHandler server-parsed .html in the .htaccess for that directory. For example, /htdocs/.htaccess: AddHandler server-parsed .html /htdocs/examples/.htaccess: RemoveHandler .html In the sub directory /htdocs/examples, Remove Handler directive will remove all the server-parsed handler associated with the extension .html for all the paths. So all the .html files will be treated as normal html file. Since we have AddHandler directive in the .htaccess of htdocs directory, all .html files will be parsed by the server in that directory. Similarly, you should use AddHandler in the main directory.Even if you used RemoveHandler in the sub directory, handler will be removed only for that sub directory. Regards, visolve_apache >Number: 5597 >Category: general >Synopsis: RemoveHandler in .htaccess removes Handler for whole Server >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Jan 17 02:20:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: ograf@rz-online.net >Release: 1.3.9 >Organization: apache >Environment: pgcc-2.91.66 Linux sky.rhein-zeitung.de 2.2.13-7mdk #1 Wed Sep 15 18:02:18 CEST 1999 i686 unknown >Description: I've set a Handler for all .html .htm .shtml documents to server-parsed. If I undo this in a .htaccess via RemoveHandler .html, the Handler is removed globally for all paths and virtservers. >How-To-Repeat: I can provide a test environment upon request. >Fix: no __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From: Sander van Zoest To: apbugs@apache.org Cc: Subject: general/5597: [PATCH] mod_mime.c RemoveHandler Date: Tue, 12 Sep 2000 00:12:31 -0700 (PDT) As described in the above mentioned PR, the RemoveHandler directive acted as a global remove handler from all paths and vhosts for that process. Recently RemoveEncoding and RemoveType have been added in the same broken fashion. The attached patch is against the latest version of mod_mime.c in the apache-1.3 CVS tree. Cheers, -- Sander van Zoest [sander@covalent.net] Covalent Technologies, Inc. http://www.covalent.net/ (415) 536-5218 http://www.vanzoest.com/sander/ Index: mod_mime.c =================================================================== RCS file: /work/cvs/root/asf/httpd/apache-1.3/src/modules/standard/mod_mime.c,v retrieving revision 1.55 diff -u -r1.55 mod_mime.c --- mod_mime.c 2000/07/14 17:34:32 1.55 +++ mod_mime.c 2000/09/12 01:10:12 @@ -157,15 +157,15 @@ suffix = (attrib_info *) add->handlers_remove->elts; for (i = 0; i < add->handlers_remove->nelts; i++) { - ap_table_unset(base->handlers, suffix[i].name); + ap_table_unset(new->handlers, suffix[i].name); } suffix = (attrib_info *) add->types_remove->elts; for (i = 0; i < add->types_remove->nelts; i++) { - ap_table_unset(base->forced_types, suffix[i].name); + ap_table_unset(new->forced_types, suffix[i].name); } suffix = (attrib_info *) add->encodings_remove->elts; for (i = 0; i < add->encodings_remove->nelts; i++) { - ap_table_unset(base->encoding_types, suffix[i].name); + ap_table_unset(new->encoding_types, suffix[i].name); } new->type = add->type ? add->type : base->type; State-Changed-From-To: open-closed State-Changed-By: abagchi State-Changed-When: Wed Sep 13 17:22:11 PDT 2000 State-Changed-Why: This has been fixed in the CVS tree. Thank you for the bug report. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]