← Back to team overview

openerp-india team mailing list archive

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

 

** Branch linked: lp:~therp-nl/openobject-
server/rportier@therp.nl_fix_sql_db_lp924783-6.1

-- 
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


References