Description

After following all the migration steps (as in MauricioHernandez/HowToSurviveMigration), my Moin seems OK. But when I try to access one particular page I got the following error message:

UnicodeDecodeError'utf8' codec can't decode bytes in position 11-14: invalid data

At the end of the error report it says:

UnicodeDecodeError: 'utf8' codec can't decode bytes in position 11-14: invalid data
      __doc__ = 'Unicode decoding error.'
      __getitem__ = <bound method UnicodeDecodeError.__getitem__ of <exceptions.UnicodeDecodeError instance>>
      __init__ = <bound method UnicodeDecodeError.__init__ of <exceptions.UnicodeDecodeError instance>>
      __module__ = 'exceptions'
      __str__ = <bound method UnicodeDecodeError.__str__ of <exceptions.UnicodeDecodeError instance>>
      args = ('utf8', 'Visualizaci\xf3nEnOpenWare.html', 11, 15, 'invalid data')
      encoding = 'utf8'
      end = 15
      object = 'Visualizaci\xf3nEnOpenWare.html'
      reason = 'invalid data'
      start = 11

That page was the only onw with an attachment with accented chars in the name that was linked from the text of the page.

Steps to reproduce

  1. Given any Moin 1.2.x (pre 1.3)
  2. Upload any file with accented chars in their name ("migraciĆ³n.html", as an example).
  3. Create a link from the page to it's attachment (this probably is not required, but this is how it happened to me).
  4. Do the Moin 1.3 installation and data migration like explained in MauricioHernandez/HowToSurviveMigration (thanks Mauricio!). :-)

  5. Try to go to the page with the attachment reference and you'll see the errors reported above.

Details

MoinMoin Version

1.3.1 (migrated from 1.2.3

OS and Version

Linux Mandrake 10

Python Version

2.3.3

Server Setup

Apache with FastCGI

Server Details

???

Workaround

Discussion

This change in the attachment name (and their corresponding links if they exists) should be included in the migration scripts.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/UnicodeErrorInMigratedAttachment (last edited 2007-10-29 19:22:27 by localhost)