UnicodeDecodeError in base_crypt

Bug #869065 reported by Kirill Tuchkov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

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'

Related branches

description: updated
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Kuldeep Joshi(OpenERP) (kjo-openerp) wrote :
Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.