Roundup Tracker - Issues

Issue 1429646

classification
fails from browsers that not send HTTP_ACCEPT_LANGUAGE
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: : hfoffani
Priority: normal :

Created on 2006-02-11 11:11 by hfoffani, last changed 2006-02-11 11:11 by hfoffani.

Messages
msg2153 Author: [hidden] (hfoffani) Date: 2006-02-11 11:11
There were a report about browsers that do not send the
HTTP_ACCEPT_LANGUAGE header. If a roundup tracker is
configured to use the browser language preference it
fails when accessed by those browsers.

Traceback (most recent call last):
 File
"/usr/lib/python2.4/site-packages/roundup/cgi/client.py",
line 237, in inner_main
   self.determine_language()
 File
"/usr/lib/python2.4/site-packages/roundup/cgi/client.py",
line 414, in determine_language
   hal = self.env['HTTP_ACCEPT_LANGUAGE']
KeyError: 'HTTP_ACCEPT_LANGUAGE'

msg2154 Author: [hidden] (hfoffani) Date: 2006-02-11 11:12
Logged In: YES 
user_id=112690

It can be fixed by replacing the line at client.py:414 by:

   // using get() 'cause it provides a default value
   hal = self.env.get('HTTP_ACCEPT_LANGUAGE')

-Hernán.
History
Date User Action Args
2006-02-11 11:11:23hfoffanicreate