Description
A OOo document with a password leads to the following problems with Xapian Search:
- when attaching the file the filter plugin throws an exception and the document can not be indexed
- when rebuilding the index (Xapian) the script stops with an exception
Steps to reproduce
- Produce a OOo document with a password
- Attach that document.
- Review the moin logs.
- Rebuild the Xapian Index (--mode=rebuild).
Example
Component selection
- MoinMoin/filter/application_vnd_oasis_opendocument.py
Details
- Traceback
"/opt/moin/lib/python2.6/site-packages/MoinMoin/filter/application_vnd_oasis_opendocument.py",line 27, in execute return data.decode('utf-8') File "/opt/webstack/python/lib/python2.6/encodings/utf_8.py", line 16,in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode bytes in position 2-3:invalid data
MoinMoin Version |
1.8.5 |
OS and Version |
SunOS sun 5.10 Generic_141445-09 i86pc i386 i86pc |
Python Version |
Python 2.6.1 |
Server Setup |
Apache and mod_wsgi |
Server Details |
Apache 2.2.11,mod_wsgi 2.6 |
Language you are using the wiki in (set in the browser/UserPreferences) |
german |
Workaround
- turn off Xapian Search or
- don't use OOo documents with passwords or
- ignore exceptions for these documents
Discussion
Plan
- Priority:
- Assigned to:
Status: fixed by http://hg.moinmo.in/moin/1.8/rev/b2e96d4cac1c (catch exception)