← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 869065] [NEW] UnicodeDecodeError in base_crypt

 

Public bug reported:

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'

** Affects: openobject-addons
     Importance: Undecided
         Status: New

** Description changed:

- OpenERP server version: 6.0.3
+ 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 )
+   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'

-- 
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):
  New

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


Follow ups

References