Description
MoinMoin 1.3 doesn't accept user name with non-ASCII alpha-numeric characters. For instace, "AloizsLešinskis". Though, 'š' is a alpha-numeric character. I've tryed other characherts as well. Strangely enough, I successfully registered a user with the very same name on MoinMoin
Well, any way, moinmoin rules!!!
Steps to reproduce
create profile wiht user name, for instace, "AloizsLešinskis"
received: Invalid user name 'AloizsLešinskis'. Name may contain any Unicode alpha numeric character, with optional one space between words. Group page name is not allowed.
Example
https://moin.datapro.lv/UserPreferences
Details
MoinMoin Version |
moin 1.3.1 (Revision patch-434) |
OS and Version |
Red Hat Linux 3.2.2-5 |
Python Version |
2.4 |
Server Setup |
standalone (internal) |
Server Details |
proxypath through Apache 1.3 |
Workaround
Discussion
Moin does accept non ascii user names, just as the error message describes, and you verified this by registering the same name in this wiki.
The problem is probably related to your setup - you are probably the first to try this setup. I recommend to use one of the tested setups: cgi, standalone, twisted, fast cgi or mod python. If you like to use standalone and apache proxypath, you are on your own, unless one of the developers will try this setup.
If you like to go in the hard way:
- Get the current development code and test it with your setup - maybe its a bug in 1.3.1 that was fixed in current code and your problem will gone with the new version.
-- NirSoffer 2005-01-13 20:43:21
That is the fastest server solution (behind fastcgi).
I've checked user.py. The function that validates username uses isalnum() imho this function works only with ASCII, doesn't it?
-- RadomirsCirskis 2005-01-13 21:28:23
So how this code works on this wiki?
Lets try:
Python 2.4 (#1, Dec 20 2004, 08:22:57) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> name = u'\u05d0\u05d1\u05d2' # ABC in Hebrew >>> name.isalnum() or name is name.isspace() True
- Sorry to bother, it's python's bug:
Python 2.4 (#1, Jan 3 2005, 02:46:46) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> name = u'\u05d0\u05d1\u05d2' >>> name.isalnum() False >>>
yea, if you check this link: https://moin.datapro.lv/FrontPage?action=test , you can see that many tests fail on your system while only two fail (broken test data) on most 1.3.1 installations. I guess its not a python bug but something bad on this certain install. And of course you do not bother us, reporting bugs is important! -- NirSoffer 2005-01-13 21:47:47
Thank you for your advice! The reinstalation of Pyhton solved the problem. -- RadomirsCirskis 2005-01-14 02:56:34
Plan
- Priority:
- Assigned to:
- Status: Problem with python on the user platform