[trunk 3353] db_user parameter dont work
Bug #716715 reported by
Serge
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP's Framework R&D |
Bug Description
in sql_db.py
_dsn = ''
for p in ('host', 'port', 'user', 'password'):
cfg = tools.config['db_' + p]
if cfg:
_dsn += '%s=%s ' % (p, cfg)
def dsn(db_name):
return '%sdbname=%s' % (_dsn, db_name)
_dns set when module is import, before config file and parameter read, and never reset after, so on my test _dns = user:user of the ubuntu session
to solve the problem i do
def dsn(db_name):
return 'user=%s dbname=%s' % (tools.
take the true user from the config
good luck with this bug, it give me a headache
Related branches
lp:~openerp-dev/openobject-server/trunk-bug-716715-db-user-name-vmt
- OpenERP buildbot (community): Approve
-
Diff: 24 lines (+6/-7)1 file modifiedopenerp/sql_db.py (+6/-7)
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |
To post a comment you must log in.
Serge,
A fix similar to yours is available in the linked branch above and will soon be merged in trunk. Thanks a lot for the bug report!