drop database fails when done before connecting to server
Bug #924783 reported by
Ronald Portier (Therp)
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
lp:~therp-nl/openobject-server/rportier@therp.nl_fix_sql_db_lp924783-6.1
- Raphael Collet (OpenERP) (community): Approve
-
Diff: 25 lines (+5/-1)2 files modified.bzrignore (+2/-0)
openerp/sql_db.py (+3/-1)
description: | updated |
Changed in openobject-server: | |
status: | Incomplete → Confirmed |
importance: | Undecided → Low |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
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.