Opened 17 years ago
Closed 17 years ago
#1791 closed defect (fixed)
Error: Maximum recursion dept exceed when click "New Ticket" menu
Reported by: | Bhuricha Deen Sethanandha | Owned by: | Russ Tyndall |
---|---|---|---|
Priority: | normal | Component: | TimingAndEstimationPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I got following error when trying to add new ticket after I install the T&E for Trac 0.11
File "d:\deen document\my research\projects\trac-edgewall\trac\web\chrome.py", line 87, in add_script
scriptset = req.chrome.setdefault('trac.chrome.scriptset', set())
File "d:\deen document\my research\projects\trac-edgewall\trac\web\api.py", line 167, in getattr
value = self.callbacks[name](self)
File "d:\deen document\my research\projects\trac-edgewall\trac\util\compat.py", line 129, in newfunc
return func_(*(args + fargs), dict(kwargs, fkwargs))
File "d:\deen document\my research\projects\trac-edgewall\trac\web\chrome.py", line 376, in prepare_request
for category, name, text in contributor.get_navigation_items(req):
File "d:\deen document\my research\projects\trac-hack\timingandestimationplugin\branches\trac0.11\
timingandestimationplugin\ticket_webui.py", line 26, in get_navigation_items
add_script(req, 'Billing/ticket.js')
File "d:\deen document\my research\projects\trac-edgewall\trac\web\chrome.py", line 87, in add_script
scriptset = req.chrome.setdefault('trac.chrome.scriptset', set())
File "d:\deen document\my research\projects\trac-edgewall\trac\web\api.py", line 167, in getattr
value = self.callbacks[name](self)
File "d:\deen document\my research\projects\trac-edgewall\trac\util\compat.py", line 129, in newfunc
return func_(*(args + fargs), dict(kwargs, fkwargs))
File "d:\deen document\my research\projects\trac-edgewall\trac\web\chrome.py", line 362, in prepare_request
chromeicon? = self.get_icon_data(req)
File "d:\deen document\my research\projects\trac-edgewall\trac\web\chrome.py", line 433, in get_icon_data
icon_abs_src = req.abs_href.chrome(icon_src)
File "d:\deen document\my research\projects\trac-edgewall\trac\web\href.py", line 163, in <lambda>
self._derived[name] = lambda *args, kw: self(name, *args, kw)
File "d:\deen document\my research\projects\trac-edgewall\trac\web\href.py", line 147, in call
path = '/'.join([unicode_quote(unicode(arg).strip('/')) for arg in args
File "d:\deen document\my research\projects\trac-edgewall\trac\util\text.py", line 68, in unicode_quote
return quote(value.encode('utf-8'))
RuntimeError: maximum recursion depth exceeded
(In [2467]) closes #1791
fixed bug in the way I was emitting the javascript that was causing infinite recursion.