Closed GuenterBurgstaller closed 4 years ago
page: 'Rückblick/2018/Vorwort' < from the log in the original post.
https://werkzeug.palletsprojects.com/en/0.16.x/unicode/#error-handling
so the fallback:... handler is still a documented feature of current werkzeug.
>>> werkzeug.url_unquote('%fcbel', errors='fallback:iso-8859-1')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "werkzeug/urls.py", line 610, in url_unquote
rv = rv.decode(charset, errors)
File "/home/user/.pyenv/versions/2.7.15/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
LookupError: unknown error handler name 'fallback:iso-8859-1'
>>> werkzeug.__version__
'0.15.6'
Note: I removed all comments relating to high cpu load if the event-log is rather long. That is a known problem and can be fixed by shorting / rotating it regularly.
There are 2 places in wikiutil
that make use of fallback:...
.
So, if this does not get fixed in werkzeug 0.16.1, we could just wrap werkzeug.url_unquote
and .url_decode
and try utf-8 first and (in the exception handler) iso-8859-1 second.
In MoinMoin 1.9.10 all pages that have a
<<Hits>>
hit counter:<<Hits: Ausführung fehlgeschlagen [unknown error handler name 'fallback:iso-8859-1'] (siehe auch die Log-Datei)>>
After commenting out the hit counter the pages load normally. You have the phenomenon in your own wiki. See:
https://moinmo.in/EventStats/HitCounts
It says:
<<StatsChart: Ausführung fehlgeschlagen [unknown error handler name 'fallback:iso-8859-1'] (siehe auch die Log-Datei)>>