Restoring database

Bug #959066 reported by Erwin van der Ploeg (BAS Solutions)
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Committed
Low
OpenERP Publisher's Warranty Team
Odoo Web (MOVED TO GITHUB)
Fix Released
Medium
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\http.py", line 180, in dispatch
  File "C:\ERP4\addons\web\controllers\main.py", line 495, in authenticate
  File "C:\ERP4\addons\web\common\session.py", line 73, in authenticate
  File "C:\ERP4\addons\web\common\openerplib\main.py", line 117, in proxy
  File "C:\ERP4\addons\web\common\http.py", line 611, in send

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

Erwin

Tags: maintenance

Related branches

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

Hello,

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

Thanks!

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
Revision history for this message
Ravi Gohil (OpenERP) (rgo-openerp) wrote :

This issue has been fixed in:
Branch link: https://code.launchpad.net/~openerp-dev/openobject-client/6.1-opw-573451-rgo
Rev-id: <email address hidden>
Rev-no: 2058

Changed in openobject-client:
status: Confirmed → Fix Committed
Changed in openerp-web:
status: Confirmed → In Progress
Revision history for this message
Ravi Gohil (OpenERP) (rgo-openerp) wrote :

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

Branch link: https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-573531-rgo
Rev-id: <email address hidden>
Rev-no: 2298

Changed in openerp-web:
status: In Progress → Fix Committed
Changed in openerp-web:
importance: Low → Medium
Revision history for this message
Erwin van der Ploeg (BAS Solutions) (erwin-bassolutions-deactivatedaccount) wrote :

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
Erwin

Revision history for this message
Ravi Gohil (OpenERP) (rgo-openerp) wrote :

Fix landed into stable V6.1 with

Branch: https://code.launchpad.net/~openerp/openerp-web/6.1
Revision ID: <email address hidden>
Revision #: 2318

Cheers

Changed in openerp-web:
status: Fix Committed → Fix Released
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.