Description

Try to add a macro with umlauts into the wikipage and you will recive an "500 Internal Server Error".

Steps to reproduce

  1. add AktuelleÄnderungen as Macro into a wiki page, like:

<<AktuelleÄnderungen>>

Example

URL: http://moinmo.in/WikiSandBox (sorry)

Component selection

Details

Logfile from Apache / WSGI:

[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130] mod_wsgi (pid=30694): Exception occurred processing WSGI script '/var/www/moinmoin/server/moin.wsgi'.
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130] Traceback (most recent call last):
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/wsgiapp.py", line 282, in __call__
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     response = run(context)
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/wsgiapp.py", line 88, in run
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     response = dispatch(request, context, action_name)
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/wsgiapp.py", line 136, in dispatch
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     response = handle_action(context, pagename, action_name)
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/wsgiapp.py", line 195, in handle_action
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     handler(context.page.page_name, context)
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/action/__init__.py", line 261, in do_show
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     content_only=content_only,
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/Page.py", line 1198, in send_page
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     start_line=pi['lines'])
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/Page.py", line 1286, in send_page_content
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     self.execute(request, parser, code)
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/Page.py", line 1317, in execute
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     exec code
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "Neuigkeiten", line 21, in <module>
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/formatter/__init__.py", line 310, in macro
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     return macro_obj.execute(name, args)
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]   File "/usr/local/lib/python2.6/dist-packages/MoinMoin/macro/__init__.py", line 113, in execute
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130]     call = getattr(self, 'macro_%s' % macro_name)
[Wed Apr 21 18:12:49 2010] [error] [client 212.203.75.130] UnicodeEncodeError: 'ascii' codec can't encode character u'\\xc4' in position 14: ordinal not in range(128)

MoinMoin Version

1.9.3 latest rev (also this wiki, too)

OS and Version

ubuntu jaunty

Python Version

2.6.x

Server Setup

wsgi

Server Details

apache2

Language you are using the wiki in (set in the browser/UserPreferences)

de

Workaround

Discussion

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/1.9 UmlautsForMacroNamesGivesAnInternalServerError (last edited 2010-04-26 21:00:34 by MarcelHäfner)