← Back to team overview

openerp-india team mailing list archive

[Bug 924783] [NEW] drop database fails when done before connecting to server

 

Public bug reported:

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.

** Affects: openobject-server
     Importance: Undecided
         Status: New

** Description changed:

- 
  Steps to reproduce:
  - Administrator goes to login page of 6.1 server.
- - Admin decides to first delete some deprecated databases (happening a lo while testing 6.1 development)
+ - 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.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/924783

Title:
  drop database fails when done before connecting to server

Status in OpenERP Server:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/924783/+subscriptions


Follow ups

References