www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trevor Phillips <phill...@central.murdoch.edu.au>
Subject mod_actions/2686: AddHandler overrides Action
Date Fri, 24 Jul 1998 05:56:39 GMT

>Number:         2686
>Category:       mod_actions
>Synopsis:       AddHandler overrides Action
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Jul 23 23:00:01 PDT 1998
>Last-Modified:
>Originator:     phillips@central.murdoch.edu.au
>Organization:
apache
>Release:        1.3.1
>Environment:
Ultra 5 running Solaris 2.6.
>Description:
If AddHandler defines a handler for a file extension for the whole server,
and an Action is also defined for the same extension locally (via .htaccess), 
then the handler overrides the action.

>How-To-Repeat:
In srm.conf, to make entire site's .html files SSI parsed:

AddHandler server-parsed .html

In a particular directory's .htaccess, for particular parsing of .html files by a script:

AddType text/mytype .html
Action text/mytype /script/to/parse/with.cgi
>Fix:
 - Have Action's override handlers.
 - Have Actions supplement handlers (ie; handle it, then pass on the output to the action)
 - Allow Handlers to be easily disabled (RemoveHandler ??)
 - Clearly document AddHandler versus Actions, caveats, adaptations, etc ...
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message