Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#9446 closed defect (cantfix)

parserError:

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

Description

How to Reproduce

While doing a POST operation on /wiki/SandBox, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'4562582d754f65fbf9a053c3',
 'action': u'edit',
 'comment': u'',
 'editrows': u'20',
 'page': u'SandBox',
 'save': u'Submit changes',
 'scroll_bar_pos': u'',
 'text': u'= The Sandbox =\r\n\r\nThis is just a page to practice and learn WikiFormatting. \r\n\r\nGo ahead, edit it freely.\r\nexport:can\r\n\r\ns:w:redfog\r\n\r\nexport:/ukaleleee.xml\r\n\r\nexport:/gameeeee.xml\r\n\r\nexport:/zxc.xml\r\n\r\nsource:/funky.py\r\n\r\n[[BackLinks]]\r\n\r\n{{{\r\n#!docbook\r\n<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN">\r\n\r\n<book>\r\n  <bookinfo>\r\n    <title>An Example Book</title>\r\n\r\n    <author>\r\n      <firstname>Your first name</firstname>\r\n      <surname>Your surname</surname>\r\n      <affiliation>\r\n        <address><email>foo@example.com</email></address>\r\n      </affiliation>\r\n    </author>\r\n\r\n    <copyright>\r\n      <year>2000</year>\r\n      <holder>Copyright string here</holder>\r\n    </copyright>\r\n\r\n    <abstract>\r\n      <para>If your book has an abstract then it should go here.</para>\r\n    </abstract>\r\n  </bookinfo>\r\n\r\n  <preface>\r\n    <title>Preface</title>\r\n\r\n    <para>Your book may have a preface, in which case it should be placed\r\n      here.</para>\r\n  </preface>\r\n\r\n  <chapter>\r\n    <title>My First Chapter</title>\r\n\r\n    <para>This is the first chapter in my book.</para>\r\n\r\n    <sect1>\r\n      <title>My First Section</title>\r\n\r\n      <para>This is the first section in my book.</para>\r\n    </sect1>\r\n  </chapter>\r\n</book>\r\n}}}\r\n\r\n\r\n',
 'version': u'22'}

User Agent was: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100216 Fedora/3.5.8-1.fc12 Firefox/3.5.8

System Information

Trac 0.11.5
Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45)
[GCC 4.4.2 20091222 (Red Hat 4.4.2-20)]
setuptools 0.6c11
SQLite 3.6.20
pysqlite 2.4.1
Genshi 0.6
Pygments 1.3.1
Subversion 1.6.9 (r901367)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/main.py", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/main.py", line 226, in dispatch
    data, content_type)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/chrome.py", line 765, in render_template
    stream.render(method, doctype=doctype, out=buffer)
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 183, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 58, in encode
    for chunk in iterator:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 339, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 826, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 670, in __call__
    for kind, data, pos in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 771, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 586, in __call__
    for ev in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/chrome.py", line 830, in _strip_accesskeys
    for kind, data, pos in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/chrome.py", line 819, in _generate
    for kind, data, pos in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 378, in _match
    ctxt, start=idx + 1, **vars):
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 378, in _match
    ctxt, start=idx + 1, **vars):
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 327, in _match
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 545, in _flatten
    for kind, data, pos in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/path.py", line 588, in _generate
    subevent = next()
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 316, in _strip
    event = next()
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 545, in _flatten
    for kind, data, pos in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/path.py", line 588, in _generate
    subevent = next()
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include
    for event in stream:
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 316, in _strip
    event = next()
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 565, in _flatten
    result = _eval_expr(data, ctxt, vars)
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 277, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py", line 178, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/wiki/templates/wiki_view.html", line 44, in <Expression u'wiki_to_html(context, page.text)'>
    ${wiki_to_html(context, page.text)}
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/wiki/formatter.py", line 1114, in format_to_html
    return HtmlFormatter(env, context, wikidom).generate(escape_newlines)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/wiki/formatter.py", line 1069, in generate
    escape_newlines)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/wiki/formatter.py", line 847, in format
    self.handle_code_block(line)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/wiki/formatter.py", line 776, in handle_code_block
    processed = self.code_processor.process(code_text)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/wiki/formatter.py", line 180, in process
    text = self.processor(text)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/wiki/formatter.py", line 167, in _macro_processor
    text)
  File "build/bdist.linux-i686/egg/tracdocbook/tracdocbook.py", line 109, in expand_macro
    return self.internal_render(formatter.req, name, content)
  File "build/bdist.linux-i686/egg/tracdocbook/tracdocbook.py", line 98, in internal_render
    doc = libxml2.parseDoc(content.encode('UTF-8'))
  File "/usr/lib/python2.6/site-packages/libxml2.py", line 1263, in parseDoc
    if ret is None:raise parserError('xmlParseDoc() failed')
parserError: xmlParseDoc() failed

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 14 years ago

Resolution: cantfix
Status: newclosed

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.