← Back to team overview

openerp-india team mailing list archive

[Bug 1041712] Re: sql_db.py does not support spaces in passwords

 

Hello Justin Warren ,

I have checked thi issue with trunk as well as 6.1 , with spaces in password but 
I did not face any problem at my end.As your bug discription in
def dsn_are_equals(first, second): dsn doesn't contain password , So 
would you please elaborate more regarding this issue.

Thanks and waiting for reply!

** Changed in: openobject-server
       Status: New => Incomplete

-- 
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:
  Incomplete

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


References