Description
The migration converter fails if you do have attachment filenames not using utf-8 encoding.
Traceback (most recent call last): File "/usr/bin/moin", line 6, in ? run() File "/usr/lib/python2.3/site-packages/MoinMoin/script/moin.py", line 15, in run MoinScript().run(showtime=0) File "/usr/lib/python2.3/site-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/lib/python2.3/site-packages/MoinMoin/script/__init__.py", line 245, in mainloop plugin_class(args[2:], self.options).run() # all starts again there File "/usr/lib/python2.3/site-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/lib/python2.3/site-packages/MoinMoin/script/migration/data.py", line 48, in mainloop curr_rev = execute(self, data_dir, curr_rev) File "/usr/lib/python2.3/site-packages/MoinMoin/script/migration/1050800.py", line 15, in execute dc.pass1() File "/usr/lib/python2.3/site-packages/MoinMoin/script/migration/_conv160.py", line 450, in pass1 p.read() File "/usr/lib/python2.3/site-packages/MoinMoin/script/migration/_conv160.py", line 296, in read a = Attachment(self.request, attach_dir, attfile) File "/usr/lib/python2.3/site-packages/MoinMoin/script/migration/_conv160.py", line 237, in __init__ self.name = attfile.decode('utf-8') UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-15: unsupported Unicode code range
The attachment in this case was written in the filesystem: Einladung_J?lich.pdf (the ? is a placeholder for something)
Steps to reproduce
- do this...
Example
Component selection
- general
Details
MoinMoin Version |
1.6.0 |
OS and Version |
linux |
Python Version |
2.3.5 |
Server Setup |
cgi |
Server Details |
apache2 |
Language you are using the wiki in (set in the browser/UserPreferences) |
de |
Workaround
rename those files to currect names
Discussion
I guess this file was uploaded in a very old moin version.
Plan
- Priority:
- Assigned to:
- Status: fixed in 1.6 2508:741a985cd628