<type 'exceptions.TypeError'>
Python 2.7.3: /usr/bin/python
Fri Apr 26 07:50:07 2019

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib/pymodules/python2.7/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
    556         """Runs the handler, flushes the streams, and ends the request."""
    557         try:
=>  558             protocolStatus, appStatus = self.server.handler(self)
    559         except:
    560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /usr/lib/pymodules/python2.7/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
   1116         try:
   1117             try:
=> 1118                 result = self.application(environ, start_response)
   1119                 try:
   1120                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <function script_name_fixer>, environ = {'DOCUMENT_ROOT': '/srv/wiki.ubuntu-br.org/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'wiki.ubuntu-br.org', 'HTTP_USER_AGENT': 'CCBot/2.0 (https://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/HelpOnMoinWikiSyntax', ...}, start_response = <function start_response>
 /srv/wiki.ubuntu-br.org/moin.fcgi in script_name_fixer(env={'DOCUMENT_ROOT': '/srv/wiki.ubuntu-br.org/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'wiki.ubuntu-br.org', 'HTTP_USER_AGENT': 'CCBot/2.0 (https://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/HelpOnMoinWikiSyntax', ...}, start=<function start_response>)
     64     def script_name_fixer(env, start):
     65         env['SCRIPT_NAME'] = fix_script_name
=>   66         return app(env, start)
     67     application = script_name_fixer
     68 
global app = <werkzeug.wsgi.SharedDataMiddleware object>, env = {'DOCUMENT_ROOT': '/srv/wiki.ubuntu-br.org/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'wiki.ubuntu-br.org', 'HTTP_USER_AGENT': 'CCBot/2.0 (https://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/HelpOnMoinWikiSyntax', ...}, start = <function start_response>
 /usr/lib/python2.7/dist-packages/werkzeug/wsgi.py in __call__(self=<werkzeug.wsgi.SharedDataMiddleware object>, environ={'DOCUMENT_ROOT': '/srv/wiki.ubuntu-br.org/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'wiki.ubuntu-br.org', 'HTTP_USER_AGENT': 'CCBot/2.0 (https://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/HelpOnMoinWikiSyntax', ...}, start_response=<function start_response>)
    409                     break
    410         if file_loader is None or not self.is_allowed(real_filename):
=>  411             return self.app(environ, start_response)
    412 
    413         guessed_type = mimetypes.guess_type(real_filename)
self = <werkzeug.wsgi.SharedDataMiddleware object>, self.app = <MoinMoin.wsgiapp.Application object>, environ = {'DOCUMENT_ROOT': '/srv/wiki.ubuntu-br.org/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'wiki.ubuntu-br.org', 'HTTP_USER_AGENT': 'CCBot/2.0 (https://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/HelpOnMoinWikiSyntax', ...}, start_response = <function start_response>
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in __call__(self=<MoinMoin.wsgiapp.Application object>, environ={'DOCUMENT_ROOT': '/srv/wiki.ubuntu-br.org/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'wiki.ubuntu-br.org', 'HTTP_USER_AGENT': 'CCBot/2.0 (https://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/HelpOnMoinWikiSyntax', ...}, start_response=<function start_response>)
    262             context = init(request)
    263             try:
=>  264                 response = run(context)
    265             finally:
    266                 context.clock.stop('total')
response undefined, global run = <function run>, context = <AllContext ['AllContext']>
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in run(context=<AllContext ['AllContext']>)
     87                 response = xmlrpc.xmlrpc2(XMLRPCContext(request))
     88             else:
=>   89                 response = dispatch(request, context, action_name)
     90             context.cfg.session_service.finalize(context, context.session)
     91             return response
response undefined, global dispatch = <function dispatch>, request = <AppRequest 0 bytes [200 OK]>, context = <AllContext ['AllContext']>, action_name = u'anywikidraw'
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in dispatch(request=<AppRequest 0 bytes [200 OK]>, context=<AllContext ['AllContext']>, action_name=u'anywikidraw')
    135     # 2. handle action
    136     else:
=>  137         response = handle_action(context, pagename, action_name)
    138     if isinstance(response, Context):
    139         response = response.request
response undefined, global handle_action = <function handle_action>, context = <AllContext ['AllContext']>, pagename = u'HelpOnMoinWikiSyntax', action_name = u'anywikidraw'
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in handle_action(context=<AllContext ['AllContext']>, pagename=u'HelpOnMoinWikiSyntax', action_name=u'anywikidraw')
    201             context.page.send_page()
    202         else:
=>  203             handler(context.page.page_name, context)
    204 
    205     return context
handler = <function execute>, context = <AllContext ['AllContext']>, context.page = <MoinMoin.Page.Page object>, context.page.page_name = u'HelpOnMoinWikiSyntax'
 /usr/lib/python2.7/dist-packages/MoinMoin/action/anywikidraw.py in execute(pagename=u'HelpOnMoinWikiSyntax', request=<AllContext ['AllContext']>)
    198 def execute(pagename, request):
    199     target = request.values.get('target')
=>  200     target = wikiutil.taintfilename(target)
    201 
    202     awd = AnyWikiDraw(request, pagename, target)
target = None, global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.pyc'>, wikiutil.taintfilename = <function taintfilename>
 /usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.py in taintfilename(basename=None)
   2270     # note: filenames containing ../ (or ..\) are made safe by replacing
   2271     # the / (or the \). the .. will be kept, but is harmless then.
=> 2272     basename = re.sub('[\x00-\x1f:/\\\\<>"*?%|]', '_', basename)
   2273     return basename
   2274 
basename = None, global re = <module 're' from '/usr/lib/python2.7/re.pyc'>, re.sub = <function sub>
 /usr/lib/python2.7/re.py in sub(pattern='[\x00-\x1f:/\\\\<>"*?%|]', repl='_', string=None, count=0, flags=0)
    149     a callable, it's passed the match object and must return
    150     a replacement string to be used."""
=>  151     return _compile(pattern, flags).sub(repl, string, count)
    152 
    153 def subn(pattern, repl, string, count=0, flags=0):
global _compile = <function _compile>, pattern = '[\x00-\x1f:/\\\\<>"*?%|]', flags = 0, ).sub undefined, repl = '_', string = None, count = 0

<type 'exceptions.TypeError'>: expected string or buffer
      args = ('expected string or buffer',)
      message = 'expected string or buffer'