>Number: 4949 >Category: mod_negotiation >Synopsis: Content negotiation failed with filenames containing uppercase >characters. >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Sep 1 13:10:00 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.4, 1.3.6 >Environment: Windows NT Server/Workstation 4.0 with SP4 and SP5 >Description: Under NT, content negotiation failed to find a match for files whose names contain uppercase characters. >How-To-Repeat: To repeat this problem, set MultiViews on for a directory, such as:
<Directory "c:/Apache/htdocs/"> Options MultiViews ... </Directory> Add or uncomment language extensions specifications: DefaultLanguage en AddLanguage en .en AddLanguage fr .fr LanguagePriority en fr And then create the following files: c:\Apache\htdocs\foobar.html.en c:\Apache\htdocs\foobar.html.fr c:\Apache\htdocs\FOOFOO.html.en c:\Apache\htdocs\FOOFOO.html.fr Restart the server. Set up your browser to prefer French over English (methods vary by manufacturer/model). And then point to: http://<host>:<port>/foobar [returns: foobar.html.fr correctly] http://<host>:<port>/FOOFOO [returns: ERROR 404] http://<host>:<port>/foobar.html [returns: foobar.html.fr correctly] http://<host>:<port>/FOOFOO.html [returns: ERROR 404] >Fix: The log file error.log reports the following: File does not exist: c:/apache/htdocs/foofoo which leads me to believe that the requested filename has been converted to all lowercase characters, which is possibly the cause of the mismatch. However, access.log reports: "GET /FOOFOO HTTP/1.1" 404 287 with the right case (uppercase). >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 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! ]