Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#8123 closed defect (wontfix)

UndefinedError: "xhr" not defined

Reported by: admin Owned by:
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /browser, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'path': '/'}

System Information

Trac 0.11dev-r5866
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
setuptools 0.6c9
SQLite 3.4.0
pysqlite 2.3.5
Genshi 0.5.1
Pygments 0.8.1
Subversion 1.4.4 (r25188)

Python Traceback

Traceback (most recent call last):
  File "c:\python25\lib\site-packages\Trac-0.11dev_r5866-py2.5.egg\trac\web\main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "c:\python25\lib\site-packages\Trac-0.11dev_r5866-py2.5.egg\trac\web\main.py", line 238, in dispatch
    data, content_type)
  File "c:\python25\lib\site-packages\Trac-0.11dev_r5866-py2.5.egg\trac\web\chrome.py", line 600, in render_template
    return stream.render(method, doctype=doctype)
  File "build\bdist.win32\egg\genshi\core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "build\bdist.win32\egg\genshi\output.py", line 60, in encode
    return _encode(u''.join(list(iterator)))
  File "build\bdist.win32\egg\genshi\output.py", line 311, in __call__
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\output.py", line 753, in __call__
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\output.py", line 698, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "build\bdist.win32\egg\genshi\output.py", line 532, in __call__
    for ev in stream:
  File "build\bdist.win32\egg\genshi\core.py", line 283, in _ensure
    for event in stream:
  File "build\bdist.win32\egg\genshi\core.py", line 283, in _ensure
    for event in stream:
  File "c:\python25\lib\site-packages\Trac-0.11dev_r5866-py2.5.egg\trac\web\chrome.py", line 630, in _strip_accesskeys
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\core.py", line 283, in _ensure
    for event in stream:
  File "c:\python25\lib\site-packages\Trac-0.11dev_r5866-py2.5.egg\trac\web\chrome.py", line 619, in _generate
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\template\base.py", line 569, in _include
    for event in stream:
  File "build\bdist.win32\egg\genshi\template\markup.py", line 279, in _match
    content = list(content)
  File "build\bdist.win32\egg\genshi\template\base.py", line 582, in _include
    for event in tmpl.generate(ctxt, **vars):
  File "build\bdist.win32\egg\genshi\template\base.py", line 569, in _include
    for event in stream:
  File "build\bdist.win32\egg\genshi\template\markup.py", line 245, in _match
    for event in stream:
  File "build\bdist.win32\egg\genshi\template\base.py", line 543, in _exec
    for event in stream:
  File "build\bdist.win32\egg\genshi\template\base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\template\base.py", line 557, in _flatten
    **vars)
  File "build\bdist.win32\egg\genshi\template\base.py", line 272, in _apply_directives
    stream = directives[0](iter(stream), directives[1:], ctxt, **vars)
  File "build\bdist.win32\egg\genshi\template\directives.py", line 411, in __call__
    value = _eval_expr(self.expr, ctxt, **vars)
  File "build\bdist.win32\egg\genshi\template\base.py", line 286, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "build\bdist.win32\egg\genshi\template\eval.py", line 180, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "c:\Python25\lib\site-packages\trac-0.11dev_r5866-py2.5.egg\trac\versioncontrol\templates\dir_entries.html", line 8, in <Expression u'xhr'>
    <py:if test="xhr">
  File "build\bdist.win32\egg\genshi\template\eval.py", line 306, in lookup_name
    val = cls.undefined(name)
  File "build\bdist.win32\egg\genshi\template\eval.py", line 405, in undefined
    raise UndefinedError(key, owner=owner)
UndefinedError: "xhr" not defined

Attachments (0)

Change History (2)

comment:1 by ebray, 16 years ago

Have you tried upgrading to an actual release of Trac, such as 0.11.3, instead of using a 20 month old development snapshot?

comment:2 by Christian Boos, 16 years ago

Keywords: needinfo added
Resolution: wontfix
Status: newclosed

Right, please upgrade. We have plenty good 0.11.x released versions and a few release candidates as well available in TracDownload, all better than this old development version ;-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.