drop database fails when done before connecting to server

Bug #924783 reported by Ronald Portier (Therp)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
Unassigned

Bug Description

Steps to reproduce:
- Administrator goes to login page of 6.1 server.
- Admin decides to first delete some deprecated databases (happening a lot while testing 6.1 development)
- Clicks on "Manage Databases"
- Click on DROP in left hand menu.
- Selects database to drop, enters master password, submits with DROP button.
- Click on OK on confirmation message.

Expected result: database is dropped

Observed result: message "Couldn't drop database"

Analysis:
In the file openerp/sql_db.py the variable _Pool is used to close a database. However it will not be intialized if the method db_connect has not been called yet.

I will try to submit a fix.

Related branches

description: updated
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello Ronald Portier,

I have checked this issue with trunk as well as rc1 but
I did not face any problem like yours.

So would you please provide more information regarding this issue.

I have attached a video for more reference.

Thank and waiting for reply.

Changed in openobject-server:
status: New → Incomplete
Changed in openobject-server:
status: Incomplete → Confirmed
importance: Undecided → Low
status: Confirmed → Fix Committed
Revision history for this message
Raphael Collet (OpenERP) (rco-openerp) wrote :

landed in trunk
revno: 3997 [merge]
revision-id: <email address hidden>

Changed in openobject-server:
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

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.