Description
When using Moin v1.9.1, if i serve it on Apache, i cannot create or access any pages contain Chinese character in their name. But in a desktop version, they can be correctly created and accessed.
Steps to reproduce
- Serve Moin v1.9.1 on Apache, using fast cgi or cgi mode.
- Visit a not-exist Chinese named wiki page.
- The name shown in the page will become several question marks or something else.
- Click "Create new empty page" link.
- Page editing form cannot be shown.
Example
- When using desktop (standalone) version, everything works fine. Just like here in this site.
- But if serve it on Apache, the Chinese name becomes messy code.
Component selection
- general
Details
MoinMoin Version |
1.9.1 |
OS and Version |
Win 7 Enterprise 32bit |
Python Version |
2.5.4 |
Server Setup |
Apache 2.2.14 |
Server Details |
Apache running on local machine, use cgi mode |
Language you are using the wiki in (set in the browser/UserPreferences) |
English |
Workaround
See there: http://hg.moinmo.in/moin/1.9/file/tip/wiki/server/moin.fcgi
Discussion
This is likely a Windows/Apache issue. Moin uses the same core code (WSGI) for anything.
MoinMoin.support.werkzeug.contrib.fixers.PathInfoFromRequestUriFix looks like it is maybe related to your problem, try it.
I tried mod_wsgi today. When using mod_wsgi, there is no problem. The problem only occurs when using CGI/fastCGI, and I still cannot find a solution. -- JiZhou 2010-02-20 11:07:18
I suggested one above, did you try it? It is not trivial though, as you have to write your own script and wrap the moin wsgi app with the fixer app. But anyway, using mod_wsgi is better in any case. -- ThomasWaldmann 2010-02-20 11:24:43
Yep, i tried, but not succeed. Currently i will move to mod_wsgi, and will try CGI/fastCGI later if i have time. Thanks. -- JiZhou 2010-02-20 11:48:53
Note that using mod_wsgi and then going to cgi or fastcgi is backwards.
But there is an updated moin.fcgi script now that includes some code to call the fixer middleware, if wanted, see link in workaround section. -- ThomasWaldmann 2010-02-20 15:09:55
Plan
- Priority:
- Assigned to:
- Status: