You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by David Bronder <Da...@uiowa.edu> on 1997/02/20 18:30:01 UTC

mod_mime/181: AddHandler (and others?) doesn't match the extension properly

	The contract type is `' with a response time of 3 business hours.
	A first analysis should be sent before: Thu Feb 20 13:00:01 PST 1997


>Number:         181
>Category:       mod_mime
>Synopsis:       AddHandler (and others?) doesn't match the extension properly
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Feb 20 09:30:01 1997
>Originator:     David-Bronder@uiowa.edu
>Organization:
apache
>Release:        1.2b6
>Environment:
AIX 4.1.4, C for AIX
>Description:
The AddHandler directive (and presumably the other related directives) doesn't
properly match the given extension.  It will declare a match if the extension
string appears anywhere in the filename, not just at the end.  For example,
given the directive "AddHandler imap-file map", the filename "main.map" will
match, but so will "campus.map.html".  This can severely limit the available
namespace for files to be served.
>How-To-Repeat:
http://fire.weeg.uiowa.edu/test/bob-map.html works as expected.
http://fire.weeg.uiowa.edu/test/bob.map.html is processed as an image map
file (the srm.conf file contains the "AddHandler imap-file map" directive).
>Fix:

>Audit-Trail:
>Unformatted: