Ticket #3024 (closed defect: fixed)
Cannot render (or upgrade) some wiki pages.
| Reported by: | tjb@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | high | Milestone: | 0.10 |
| Component: | wiki system | Version: | 0.9.4 |
| Severity: | normal | Keywords: | unicode |
| Cc: | pacopablo@…, tjb@…, matt_tricks@… |
Description
When trying to access the TracReports wiki page, we see the following error
Python Traceback
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 300, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 176, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 117, in process_request
self._render_view(req, db, page)
File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 364, in _render_view
req.hdf['wiki.page_html'] = wiki_to_html(page.text, self.env, req)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 826, in wiki_to_html
return Markup(out.getvalue())
File "/usr/lib/python2.3/StringIO.py", line 203, in getvalue
self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 63: ordinal not in range(128)
searchHighlight()
This is apparently another unicode problem, and is consistent across our trac installations. It also occurs on some other wiki pages.
At the same time, trac-admin wiki upgrade fails when trying to upgrade TracReports, and gets no further.
It reports an error when trying to decode a character - I'll look for the details and attache them when I can.
Our current trac version is 3130, and we are running on Suse Enterprise Linux 9, Apache 2.0.49, and mod-python.


