Description

Today I visited a wiki that badly falls over some wrong encoded data on the page LocalSpellingWords.

If one does a full search on that wiki, it tries to read that page content from disk and gives a traceback because it can't decode it with the utf8 codec.

If one tries to edit LocalSpellingWords, one just sees a traceback. Same for action info or DeletePage (the ACL check also has to read the page).

Component selection

Details

MoinMoin Version

1.5.8

OS and Version

SuSE Linux

Python Version

2.3+

Workaround

Move the page directory of the page appearing in the tracebacks out of the data_dir.

Discussion

What to do right now

... TBD ...

What to do in future

The storage layer should not save invalid data.

The storage layer should somehow handle it if it reads invalid data from disk (even if it does not storage invalid data, there could be disk corruption, for example).

Plan


CategoryMoinMoinBug CategoryForMoin2

MoinMoin: MoinMoinBugs/BadlyFallingOverWrongEncoding (last edited 2011-01-17 23:39:06 by ReimarBauer)