Description

Improper use of the color tag triggers "Internal server error" and breaks page loading. The bug is triggered when the quotation is not closed.

Steps to reproduce

  1. Edit page, paste code as it is from the example below.

||<#"0000FF> should be blue ||
  1. Save
  2. Tail of apache logfiles:

[Mon Jun 11 11:30:36 2012] [error] 2012-06-11 11:30:36,221 ERROR MoinMoin.wsgiapp:293 An exception has occurred [http://example/example].
[Mon Jun 11 11:30:36 2012] [error] Traceback (most recent call last):
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/wsgiapp.py", line 282, in __call__
[Mon Jun 11 11:30:36 2012] [error]     response = run(context)
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/wsgiapp.py", line 88, in run
[Mon Jun 11 11:30:36 2012] [error]     response = dispatch(request, context, action_name)
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/wsgiapp.py", line 136, in dispatch
[Mon Jun 11 11:30:36 2012] [error]     response = handle_action(context, pagename, action_name)
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/wsgiapp.py", line 195, in handle_action
[Mon Jun 11 11:30:36 2012] [error]     handler(context.page.page_name, context)
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/action/__init__.py", line 268, in do_show
[Mon Jun 11 11:30:36 2012] [error]     content_only=content_only,
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/Page.py", line 1198, in send_page
[Mon Jun 11 11:30:36 2012] [error]     start_line=pi['lines'])
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/Page.py", line 1297, in send_page_content
[Mon Jun 11 11:30:36 2012] [error]     code = self.makeCache(request, parser)
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/Page.py", line 1357, in makeCache
[Mon Jun 11 11:30:36 2012] [error]     text = request.redirectedOutput(parser.format, formatter)
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/web/contexts.py", line 296, in redirectedOutput
[Mon Jun 11 11:30:36 2012] [error]     function(*args, **kw)
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/parser/text_moin_wiki.py", line 1538, in format
[Mon Jun 11 11:30:36 2012] [error]     attrs, attrerr = self._getTableAttrs(line[indlen+2:])
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/parser/text_moin_wiki.py", line 1144, in _getTableAttrs
[Mon Jun 11 11:30:36 2012] [error]     attr, msg = wikiutil.parseAttributes(self.request, attrdef, '>', table_extension)
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/wikiutil.py", line 1996, in parseAttributes
[Mon Jun 11 11:30:36 2012] [error]     found_flag, msg = extension(key, parser, attrs)
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/pymodules/python2.7/MoinMoin/parser/text_moin_wiki.py", line 1130, in table_extension
[Mon Jun 11 11:30:36 2012] [error]     arg = parser.get_token()
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/python2.7/shlex.py", line 96, in get_token
[Mon Jun 11 11:30:36 2012] [error]     raw = self.read_token()
[Mon Jun 11 11:30:36 2012] [error]   File "/usr/lib/python2.7/shlex.py", line 172, in read_token
[Mon Jun 11 11:30:36 2012] [error]     raise ValueError, "No closing quotation"
[Mon Jun 11 11:30:36 2012] [error] ValueError: No closing quotation
  1. Page will load with "Internal Server Error"

Example

Add the examplecode to WikiSandBox to try out for yourself.

Component selection

Details

Bug is present in this wiki.

Workaround

Edit the page again (enter edit url manually), fix your mistake, save.

Discussion

Plan


CategoryMoinMoinBugConfirmed

MoinMoin: MoinMoinBugs/ColorFormattingCrash (last edited 2012-06-12 08:21:35 by ThomasWaldmann)