c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #34174
[Bug 869065] Re: UnicodeDecodeError in base_crypt
** Changed in: openobject-addons
Importance: Undecided => Medium
** Changed in: openobject-addons
Status: New => Confirmed
** Changed in: openobject-addons
Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/869065
Title:
UnicodeDecodeError in base_crypt
Status in OpenERP Addons (modules):
Confirmed
Bug description:
OpenERP server version: 6.0.3. Platform: Windows Server 2008.
If base_crypt module installed and there are national characters (cyrillic in my case) in user's password, user can not log in.
Steps to reproduce:
1)install base_crypt module
2)create new user and set password with cyrillic characters (try ЯПароль123 for example)
3)try to log in with new password
Result:
1) error window with text:
Database cannot be accessed or does not exist
Please double-check the database name or contact your administrator to verify the database status.
2) error message in log file:
[2011-10-06 14:54:03,710][z1] ERROR:netsvc:Could not authenticate
Traceback (most recent call last):
File "D:\opt\openerp-server\bin\addons\base_crypt\crypt.py", line 181, in login
return self._login(cr, db, login, password)
File "D:\opt\openerp-server\bin\addons\base_crypt\crypt.py", line 212, in _login
encrypted_pw = encrypt_md5(password, salt)
File "D:\opt\openerp-server\bin\addons\base_crypt\crypt.py", line 75, in encrypt_md5
hash.update( raw_pw + magic + salt )
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
[2011-10-06 14:54:03,711][z1] INFO:web-service:successful login from 'test' using database 'z1'
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/869065/+subscriptions
References