While doing a GET operation on /xmlrpc, Trac issued an internal error.
It seems to be related to the way descriptive texts are rendered (i.e. WikiFormatting). The full report suggested me that it is about rendering TracLinks pointing to missing (or non-existing) wiki pages.
User Agent was: Opera/9.63 (X11; Linux i686; U; en) Presto/2.1.1
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 197, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-i686/egg/tracrpc/web_ui.py", line 138, in process_request
'description' : wiki_to_oneliner(method.namespace_description, self.env),
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/formatter.py", line 1128, in wiki_to_oneliner
OneLinerFormatter(env, context).format(wikitext, out, shorten)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/formatter.py", line 954, in format
result = re.sub(self.wikiparser.rules, self.replace, result)
File "/usr/lib/python2.5/re.py", line 150, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/formatter.py", line 807, in replace
replacement = self.handle_match(fullmatch)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/formatter.py", line 800, in handle_match
return external_handler(self, match, fullmatch)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/api.py", line 277, in wikipagename_link
self.ignore_missing_pages)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/api.py", line 311, in _format_link
if 'WIKI_VIEW' in formatter.perm('wiki', pagename, version):
TypeError: 'NoneType' object is not callable
Full details
Most recent call last:
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py",
line 423, in_dispatch_request
Code fragment:
try:
if not env and env_error:
raise HTTPInternalError(env_error)
try:
dispatcher = RequestDispatcher(env)
dispatcher.dispatch(req)
except RequestDone:
pass
resp = req._response or []
except HTTPException, e:
Local variables:
Name
Value
after
[u' except RequestDone:', u' pass', u' resp = ...
before
[u' try:', u' if not env and env_error:', u' raise ...
dispatcher
<trac.web.main.RequestDispatcher object at 0x8cad04c>
e
TypeError("'NoneType' object is not callable",)
env
<trac.env.Environment object at 0x8919fcc>
env_error
None
exc_info
(<type 'exceptions.TypeError'>, TypeError("'NoneType' object is not ...
<trac.wiki.formatter.OneLinerFormatter object at 0x8c38e6c>
fragment
''
ignore_missing
False
label
'RepositoryManager'
ns
'wiki'
pagename
'RepositoryManager'
query
''
self
<trac.wiki.api.WikiSystem object at 0x8cad28c>
version
None
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 197, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-i686/egg/tracrpc/web_ui.py", line 138, in process_requestFile "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/formatter.py", line 1128, in wiki_to_oneliner
OneLinerFormatter(env, context).format(wikitext, out, shorten)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/formatter.py", line 954, in format
result = re.sub(self.wikiparser.rules, self.replace, result)
File "/usr/lib/python2.5/re.py", line 150, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/formatter.py", line 807, in replace
replacement = self.handle_match(fullmatch)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/formatter.py", line 800, in handle_match
return external_handler(self, match, fullmatch)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/api.py", line 277, in wikipagename_link
self.ignore_missing_pages)
File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/api.py", line 311, in _format_link
if 'WIKI_VIEW' in formatter.perm('wiki', pagename, version):
A workaround this may be to enclose CamelCase expressions in backquotes, but IMO a better solution would be to render those links just like they are shown in wiki pages.
A workaround this may be to enclose CamelCase expressions in backquotes, but IMO a better solution would be to render those links just like they are shown in wiki pages.