DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43250>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43250





------- Additional Comments From [EMAIL PROTECTED]  2007-09-12 17:17 -------
Created an attachment (id=20804)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20804&action=view)
Patch against trunk

Problem description :
/FooBar.Baz does not return /FooBar.Baz.html
while
/FooBar.baz return /FooBar.baz.html

find_ct function in mime.c collect mime related information. It prepares the
ap-mime-exception-list in r->notes. In this list, all extensions which are
*not* mime type extensions, are stored. Since mime types are case insensitive
so ext is converted into lower case. However "ap-mime-exception-list" should
not be case insensitive.

Currently there is only one consumer of this list that is mod_negotiation.
read_type_multi function read this mime exception list and try to match it
with file name extension. If the OS filesystem is case sensitive then it uses
strncmp (instead of strncasecmp) to compare the file extensions with mime
exception. The comparision fails if mime exception is converted to lower case.

Since mime exceptions are not really mime types so they should be stored with
their cases.  In this fix, extensions are stored with their preserved values
in "ap-mime-exception-list". 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to