Restoring database

Bug #959066 reported by Erwin van der Ploeg (BAS Solutions) on 2012-03-19
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Committed
OpenERP Publisher's Warranty Team
Fix Released
OpenERP Publisher's Warranty Team

Bug Description

When restoring a database and you fill in a new database name with a space character in the name, the database isn't correctly restored. When starting, you get the error:

Client Traceback (most recent call last):
  File "C:\ERP4\addons\web\common\", line 180, in dispatch
  File "C:\ERP4\addons\web\controllers\", line 495, in authenticate
  File "C:\ERP4\addons\web\common\", line 73, in authenticate
  File "C:\ERP4\addons\web\common\openerplib\", line 117, in proxy
  File "C:\ERP4\addons\web\common\", line 611, in send

Server Traceback (most recent call last):
  File "C:\ERP4\addons\web\common\", line 592, in send
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\", line 360, in dispatch_rpc
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\service\", line 397, in dispatch
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\service\", line 408, in exp_authenticate
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\", line 50, in get_pool
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\", line 33, in get_db_and_pool
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\modules\", line 138, in get
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\modules\", line 150, in new
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\modules\", line 54, in __init__
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\", line 465, in cursor
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\", line 173, in __init__
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\", line 366, in _locked
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\", line 402, in borrow
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\", line 494, in dsn_are_equals
  File "C:\Program Files\OpenERP 6.1-20120319-001512\server\.\openerp\", line 491, in key
ValueError: dictionary update sequence element #5 has length 1; 2 is required


Related branches

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Amit Parik (amit-parik) wrote :


This problem will fixed from both client side, that's why I am assigning this to both client.


affects: openobject-server → openobject-client
Changed in openobject-client:
assignee: OpenERP's Framework R&D (openerp-dev-framework) → OpenERP sa GTK client R&D (openerp-dev-gtk)
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-client:
assignee: OpenERP sa GTK client R&D (openerp-dev-gtk) → OpenERP Publisher's Warranty Team (openerp-opw)
Changed in openerp-web:
assignee: OpenERP R&D Web Team (openerp-dev-web) → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance

This issue has been fixed in:
Branch link:
Rev-id: <email address hidden>
Rev-no: 2058

Changed in openobject-client:
status: Confirmed → Fix Committed
Changed in openerp-web:
status: Confirmed → In Progress

For Web-Client, This issue has been fixed in:

Branch link:
Rev-id: <email address hidden>
Rev-no: 2298

Changed in openerp-web:
status: In Progress → Fix Committed
Changed in openerp-web:
importance: Low → Medium

Tested the web patch and it works fine. Error message would be better if it gives the user the information why the database name is invalid.
In my opinion it can be merged to the stable branch 6.1

Fix landed into stable V6.1 with

Revision ID: <email address hidden>
Revision #: 2318


Changed in openerp-web:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers