You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/05/24 11:58:00 UTC

DO NOT REPLY [Bug 35039] New: - language priority incorrectly depends on order of AddLanguage statements

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=35039>.
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=35039

           Summary: language priority incorrectly depends on order of
                    AddLanguage statements
           Product: Apache httpd-2.0
           Version: 2.0.53
          Platform: Other
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: minor
          Priority: P2
         Component: mod_negotiation
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: nicolas@kessler.cx


When preferred languages contain a country code, then mod_negotiation ignores 
the preference if the corresponding AddLanguage entry in httpd.conf comes 
*before* an AddLanguage entry without country-code extension.

Example:

In httpd.conf we have

AddLanguage de-ch .de
AddLanguage de .de

and the browser requests: 

Accept-Language: de-ch,fr;q=0.7,de;q=0.3

then French is served. If the order is

AddLanguage de .de
AddLanguage de-ch .de

then German is served. 

This is not the expected behavior and unwelcome, because the order of the 
AddLanguage statement changes the Content-Language header (which obviously 
must be determined by the site and not made dependent on language negotiation).

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org