Description
RecentChanges doesn't show recent changes, instead shows
'decimal' codec can't encode character u'\x00' in position 0: invalid decimal Unicode string
Steps to reproduce
This seems to occur sometimes randomly after an edit is made. When I look in the edit-log file, there is a line that looks like this:
^@^@^@^@^@^@^@^@^@^@1176960928000000 00000005 SAVE Discovery2(2f)SumoReport 129.94.211.121 drum11.orchestra.cse.unsw.EDU.AU
Where the ^@ characters are NULLs (ASCII 0).
Editing edit-log to remove the nulls fixes the problem.
Example
Component selection
- general
Details
MoinMoin Version |
Release 1.5.7 |
OS and Version |
Debian 4.1.1-16.1 |
Python Version |
2.3.5 |
Server Setup |
Public wiki using CGI |
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
English |
Workaround
Manually delete NULL characters from edit-log when they appear.
Discussion
This continues to happen randomly when editing pages or even making new attachments. I just upgraded to 1.5.8 and once again experienced it, so the fix noted below does not solve the creation of these unreadable pages. This problem seems very critical since pages are made unusable, and only the administrator can fix by manually editing the edit-log.
Well, it depends where the problem comes from. The fix should definitely stop garbage characters coming in from the web UI forms (e.g. comment input field). We recently had a similar problem when someone had his data directory on NFS. NFS has trouble with append mode and this can lead to 0 bytes in your logs. The 1.6 repo has a workaround at http://hg.thinkmo.de/moin/1.6/rev/e13e6d72f42a that should at least help a bit.
Plan
- Priority:
Assigned to: ThomasWaldmann
Status: hopefully fixed by http://hg.thinkmo.de/moin/1.5/rev/09deab6ed2f3 (also fixed in 1.6).