>Number: 3299 >Category: mod_negotiation >Synopsis: random language variant returned when no Accept-Language: >header is given >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Oct 27 08:10:02 PST 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.3 >Environment: Linux landru 2.1.123 #6 SMP Tue Sep 29 15:52:40 EDT 1998 i586 unknown >Description: When Multiviews is enabled and a client requests a page without specifying an Accept-Language: header a random language variant is returned. If an Accept-Language: header is given the proper page is always returned.
It is unclear from reading about the negotiation algorithm at http://www.apache.org/docs/content-negotiation.html what is done in the case when no Accept-Language: header is given. In other words, how are quality factors decided when no Accept-Language: header is given? I get the impression that when that header is missing, the .html version should be served if it exists. >How-To-Repeat: I used lines such as wget -S -O - --header="Accept-Language: it" http://www.debian.org/devel/people | head -4 to see what apache was returning for different requests. Remove the --header= option and notice that the italian page is served. The following language variants of the file exist: lrwxrwxrwx 1 treacy debwww 14 Oct 12 11:09 devel/people.html -> people.html.en -rw-rw-r-- 1 treacy debwww 91442 Oct 24 22:22 devel/people.html.en -rw-rw-r-- 1 treacy debwww 91737 Oct 25 14:49 devel/people.html.es -rw-rw-r-- 1 treacy debwww 82581 Aug 27 23:46 devel/people.html.it >Fix: >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. ] [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! ]
