Opened 5 years ago

Closed 5 years ago

#4826 closed defect (fixed)

HTTP_ACCEPT_LANGUAGE variable from reqest

Reported by: anonymous Owned by: takanorig
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 5 years ago by takanorig

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from takanorig. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.