Attachment 'traceback.html'

Download

--> -->

UnicodeDecodeError

'utf8' codec can't decode bytes in position 15-20: unsupported Unicode code range

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

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

  1. /home/user/workspace/moin-1.7/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>)

    1. 1296 self.page.send_page()
    2. 1297 else:
    3. 1298 handler(self.page.page_name, self)
    4. 1299
    5. 1300 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function execute at 0xa477d0>
    • self = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
    • self.page = <MoinMoin.Page.Page object at 0xf3c450>
    • self.page.page_name = u'Example'
  2. /home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in execute (pagename=u'Example', request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>)

    1. 523 handler = globals().get('_do_%s' % do[0])
    2. 524 if handler:
    3. 525 msg = handler(pagename, request)
    4. 526 else:
    5. 527 msg = _('Unsupported AttachFile sub-action: %s') % (wikiutil.escape(do[0]), )
    • msg undefined
    • handler = <function _do_unzip at 0xa47d70>
    • pagename = u'Example'
    • request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
  3. /home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in _do_unzip (pagename=u'Example', request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>)

    1. 945 msg = _('The file %(filename)s is not a .zip file.') % {'filename': filename}
    2. 946
    3. 947 upload_form(pagename, request, msg=wikiutil.escape(msg))
    4. 948
    5. 949
    • global upload_form = <function upload_form at 0xa478c0>
    • pagename = u'Example'
    • request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
    • msg = u"Attachment 'Aufbruchsklima.zip' unzipped."
    • global wikiutil = <module 'MoinMoin.wikiutil' from '/home/user/workspace/moin-1.7/MoinMoin/wikiutil.pyc'>
    • wikiutil.escape = <function escape at 0x7c6d70>
  4. /home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in upload_form (pagename=u'Example', request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>, msg=u"Attachment 'Aufbruchsklima.zip' unzipped.")

    1. 541 request.setContentLanguage(request.lang)
    2. 542 request.theme.add_msg(msg, "dialog")
    3. 543 request.theme.send_title(_('Attachments for "%(pagename)s"') % {'pagename': pagename}, pagename=pagename)
    4. 544 request.write('<div id="content">\n') # start content div
    5. 545 send_uploadform(pagename, request)
    • request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
    • request.theme = <MoinMoin.theme.modern.Theme instance at 0xdcf830>
    • request.theme.send_title = <bound method Theme.send_title of <MoinMoin.theme.modern.Theme instance at 0xdcf830>>
    • _ = <function <lambda> at 0xf4acf8>
    • pagename = u'Example'
  5. /home/user/workspace/moin-1.7/MoinMoin/theme/__init__.py in send_title (self=<MoinMoin.theme.modern.Theme instance at 0xdcf830>, text=u'Attachments for "Example"', **keywords={'pagename': u'Example'})

    1. 1651 if pagename and request.user.may.read(pagename):
    2. 1652 from MoinMoin.action import AttachFile
    3. 1653 AttachFile.send_link_rel(request, pagename)
    4. 1654
    5. 1655 output.extend([
    • AttachFile = <module 'MoinMoin.action.AttachFile' from '/home...rkspace/moin-1.7/MoinMoin/action/AttachFile.pyc'>
    • AttachFile.send_link_rel = <function send_link_rel at 0xa47668>
    • request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
    • pagename = u'Example'
  6. /home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in send_link_rel (request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>, pagename=u'Example')

    1. 409
    2. 410 def send_link_rel(request, pagename):
    3. 411 files = _get_files(request, pagename)
    4. 412 for fname in files:
    5. 413 url = getAttachUrl(pagename, fname, request, do='view', escaped=1)
    • files undefined
    • global _get_files = <function _get_files at 0xa47488>
    • request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
    • pagename = u'Example'
  7. /home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in _get_files (request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>, pagename=u'Example')

    1. 366 attach_dir = getAttachDir(request, pagename)
    2. 367 if os.path.isdir(attach_dir):
    3. 368 files = [fn.decode(config.charset) for fn in os.listdir(attach_dir)]
    4. 369 files.sort()
    5. 370 else:
    • files undefined
    • fn = 'BF Onlinebrosch\xfcre Sym 2008.pdf'
    • fn.decode = <built-in method decode of str object at 0xdd0198>
    • global config = <module 'MoinMoin.config' from '/home/user/workspace/moin-1.7/MoinMoin/config/__init__.pyc'>
    • config.charset = 'utf-8'
    • global os = <module 'os' from '/usr/lib64/python2.5/os.pyc'>
    • os.listdir = <built-in function listdir>
    • attach_dir = '/home/user/workspace/moin-1.7/wiki/data/pages/Example/attachments'
  8. /usr/lib64/python2.5/encodings/utf_8.py in decode (input='BF Onlinebrosch\xfcre Sym 2008.pdf', errors='strict')

    1. 14
    2. 15 def decode(input, errors='strict'):
    3. 16 return codecs.utf_8_decode(input, errors, True)
    4. 17
    5. 18 class IncrementalEncoder(codecs.IncrementalEncoder):
    • global codecs = <module 'codecs' from '/usr/lib64/python2.5/codecs.pyc'>
    • codecs.utf_8_decode = <built-in function utf_8_decode>
    • input = 'BF Onlinebrosch\xfcre Sym 2008.pdf'
    • errors = 'strict'
    • builtin True = True

UnicodeDecodeError

'utf8' codec can't decode bytes in position 15-20: unsupported Unicode code range

  • args = ('utf8', 'BF Onlinebrosch\xfcre Sym 2008.pdf', 15, 21, 'unsupported Unicode code range')
  • encoding = 'utf8'
  • end = 21
  • message = ''
  • object = 'BF Onlinebrosch\xfcre Sym 2008.pdf'
  • reason = 'unsupported Unicode code range'
  • start = 15

System Details

  • Date: Mon, 26 May 2008 08:02:34 +0000
  • Platform: Linux linux 2.6.18.8-0.9-default #1 SMP Sun Feb 10 22:48:05 UTC 2008 x86_64
  • Python: Python 2.5 (/usr/bin/python)
  • MoinMoin: Release 1.7.0rc1 (release)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2008-06-12 19:51:22, 0.2 KB) [[attachment:example.zip]]
  • [get | view] (2008-05-26 08:12:25, 14.8 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.