Unicode passwords are not supported

Bug #409345 reported by Hosam Aly
This bug report is a duplicate of:  Bug #409343: Unicode passwords are not supported. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

OpenERP - Server - v5.0.1 - Python 2.5.4

Logging in with a password that contains Unicode character(s) (or any character outside the 7-bit ASCII range) causes a UnicodeDecodeError.

Traceback (most recent call last):
  File "openerp-server/netsvc.py", line 235, in dispatch
    result = LocalService(service_name)(method, *params)
  File "openerp-server/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "openerp-server/service/web_services.py", line 385, in login
    res = security.login(db, login, password)
  File "openerp-server/service/security.py", line 30, in login
    cr.execute('select id from res_users where login=%s and password=%s and active', (login.encode('utf-8'), password.encode('utf-8')))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 0: ordinal not in range(128)

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.