openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #14869
[Bug 1041712] [NEW] sql_db.py does not support spaces in passwords
Public bug reported:
In version 6.1: in this sql_db.py code:
def dsn_are_equals(first, second):
def key(dsn):
k = dict(x.split('=', 1) for x in dsn.strip().split())
k.pop('password', None) # password is not relevant
return k
return key(first) == key(second)
if the password in the DSN contains spaces, the dsn.split().split() does
not work correctly, and means that the dict is called with an update()
containing only one item, instead of 2, giving this error:
dictionary update sequence element #2 has length 1; 2 is required
This affects many processes, including initial database creation. It's
an obscure error, so it's not immediately obvious that a space in the
server password is the cause.
** Affects: openobject-server
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1041712
Title:
sql_db.py does not support spaces in passwords
Status in OpenERP Server:
New
Bug description:
In version 6.1: in this sql_db.py code:
def dsn_are_equals(first, second):
def key(dsn):
k = dict(x.split('=', 1) for x in dsn.strip().split())
k.pop('password', None) # password is not relevant
return k
return key(first) == key(second)
if the password in the DSN contains spaces, the dsn.split().split()
does not work correctly, and means that the dict is called with an
update() containing only one item, instead of 2, giving this error:
dictionary update sequence element #2 has length 1; 2 is required
This affects many processes, including initial database creation. It's
an obscure error, so it's not immediately obvious that a space in the
server password is the cause.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1041712/+subscriptions
Follow ups
References