>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:     [EMAIL PROTECTED]
>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 <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to