You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by "Greg A.Woods" <wo...@weird.com> on 2001/08/18 06:07:03 UTC

mod_negotiation/8201: language negotiation rarely works for MSIE or Mozilla

>Number:         8201
>Category:       mod_negotiation
>Synopsis:       language negotiation rarely works for MSIE or Mozilla
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Aug 17 21:10:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     woods-apache.org@weird.com
>Release:        1.3.20
>Organization:
apache
>Environment:
NetBSD-1.5W/i386

Server: Apache/1.3.20 (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6a
>Description:
Mozilla sends:



GET / HTTP/1.1

Host: tadmin.aci.on.ca

User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:0.9.3) Gecko/20010817

Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, image/png, image/jpeg, image/gif;q=0.2, te

xt/plain;q=0.8, text/css, */*;q=0.1

Accept-Language: en-us

Accept-Encoding: gzip, deflate, compress;q=0.9

Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66

Keep-Alive: 300

Connection: keep-alive

Pragma: no-cache

Cache-Control: no-cache



Apache responds:



HTTP/1.1 200 OK

Date: Sat, 18 Aug 2001 03:50:10 GMT

Server: Apache/1.3.20 (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6a

Content-Location: index.html.zh.Big5

Vary: negotiate,accept-language,accept-charset

TCN: choice

Last-Modified: Tue, 01 May 2001 10:31:14 GMT

ETag: "3bd30-426-3aee9072;3b7b23d7"

Accept-Ranges: bytes

Content-Length: 1062

Keep-Alive: timeout=120

Connection: Keep-Alive

Content-Type: text/html





Server-info claims:



etc/httpd/httpd.conf

           LanguagePriority en en-ca en-GB en-au en-bz en-ie en-jm en-nz en-ph en-tt en-us en-za en-zw fr de da nl

           et el it ja kr no pl pt pt-br ru ltz ca es sv tw
>How-To-Repeat:


(note without the en-* settings even "links" gets the wrong page!)



           AddLanguage da .dk                                                                                        

           AddLanguage nl .nl                                                                                        

           AddLanguage en .en                                                                                        

           AddLanguage en-ca .en                                                                                     

           AddLanguage en-GB .en                                                                                     

           AddLanguage en-au .en                                                                                     

           AddLanguage en-bz .en                                                                                     

           AddLanguage en-ie .en                                                                                     

           AddLanguage en-jm .en                                                                                     

           AddLanguage en-nz .en                                                                                     

           AddLanguage en-ph .en                                                                                     

           AddLanguage en-tt .en                                                                                     

           AddLanguage en-us .en                                                                                     

           AddLanguage en-za .en                                                                                     

           AddLanguage en-zw .en                                                                                     

           AddLanguage et .ee                                                                                        

           AddLanguage fr .fr                                                                                        

           AddLanguage de .de                                                                                        

           AddLanguage el .el                                                                                        

           AddLanguage he .he                                                                                        

           AddCharset ISO-8859-8 .iso8859-8                                                                          

           AddLanguage it .it                                                                                        

           AddLanguage ja .ja                                                                                        

           AddCharset ISO-2022-JP .jis                                                                               

           AddLanguage kr .kr                                                                                        

           AddCharset ISO-2022-KR .iso-kr                                                                            

           AddLanguage no .no                                                                                        

           AddLanguage pl .po                                                                                        

           AddCharset ISO-8859-2 .iso-pl                                                                             

           AddLanguage pt .pt                                                                                        

           AddLanguage pt-br .pt-br                                                                                  

           AddLanguage ltz .lu                                                                                       

           AddLanguage ca .ca                                                                                        

           AddLanguage es .es                                                                                        

           AddLanguage sv .se                                                                                        

           AddLanguage cz .cz                                                                                        

           AddLanguage ru .ru                                                                                        

           AddLanguage zh-tw .tw                                                                                     

           AddLanguage tw .tw                                                                                        

           AddCharset Big5 .Big5 .big5                                                                               

           AddCharset WINDOWS-1251 .cp-1251                                                                          

           AddCharset CP866 .cp866                                                                                   

           AddCharset ISO-8859-5 .iso-ru                                                                             

           AddCharset KOI8-R .koi8-r                                                                                 

           AddCharset UCS-2 .ucs2                                                                                    

           AddCharset UCS-4 .ucs4                                                                                    

           AddCharset UTF-8 .utf8                                                                                    





user sees garbage because the the wrong document is returned.

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> 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!     ]