[trunk] DB Backup and Restore always says 'AccessDenied'

Bug #1180045 reported by Brett Lehrer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Using the current trunk (rev. 4874)
Lubuntu 13.04 x86_64
PostgreSQL 9.1

It is not possible to backup or restore a database. It will always pop up an "AccessDenied" error and will show this error log:

2013-05-14 18:24:27,532 8125 ERROR None openerp.netsvc: _set_pg_password_in_environment() takes exactly 1 argument (0 given)
Traceback (most recent call last):
  File "/home/brett/erp/7.0/server/openerp/netsvc.py", line 237, in dispatch_rpc
    result = dispatch(method, params)
  File "/home/brett/erp/7.0/server/openerp/service/db.py", line 80, in dispatch
    return fn(*params)
  File "/home/brett/erp/7.0/server/openerp/service/db.py", line 227, in exp_dump
    with _set_pg_password_in_environment():
  File "/usr/lib/python2.7/contextlib.py", line 84, in helper
    return GeneratorContextManager(func(*args, **kwds))
TypeError: _set_pg_password_in_environment() takes exactly 1 argument (0 given)

Commenting out lines 227 and 253 in server/openerp/service/db.py, which are both this:

with _set_pg_password_in_environment():

solves the problem and allows backing up and restoring DBs.

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.