Opened 9 years ago

Closed 9 years ago

#4826 closed defect (fixed)

HTTP_ACCEPT_LANGUAGE variable from reqest

Reported by: anonymous Owned by: Takanori Suzuki
Priority: normal Component: TicketExtPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


Problem with HTTP_ACCEPT_LANGUAGE. It is log from track.log I don't see any other errors during working, but there is a lot of error like this one:

Traceback (most recent call last):
  File "/python2.5/site-packages/Trac-", line 432, in _dispatch_request
  File "/python2.5/site-packages/Trac-", line 226, in dispatch
    data, content_type)
  File "/python2.5/site-packages/Trac-", line 688, in render_template
    data = self.populate_data(req, data)
  File "/python2.5/site-packages/Trac-", line 596, in populate_data
  File "/python2.5/site-packages/Trac-", line 194, in __getattr__
    value = self.callbacks[name](self)
  File "/python2.5/site-packages/Trac-", line 464, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "/python2.5/site-packages/Trac-", line 64, in get_navigation_items
    panels, providers = self._get_panels(req)
  File "/python2.5/site-packages/Trac-", line 160, in _get_panels
    p = list(provider.get_admin_panels(req))
  File "build/bdist.linux-i686/egg/ticketext/", line 42, in get_admin_panels
    locale = TicketExtUtil(self.env).get_locale(req)
  File "build/bdist.linux-i686/egg/ticketext/", line 14, in get_locale
    locale_array = req.environ['HTTP_ACCEPT_LANGUAGE'].split(",")

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Takanori Suzuki

Resolution: fixed
Status: newclosed

(In [6349])HTTP_ACCEPT_LANGUAGEが取得できない場合に、エラーにならないようにした。

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Takanori Suzuki.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.