← Back to team overview

openerp-india team mailing list archive

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

 

landed in trunk
revno: 3997 [merge]
revision-id: rco@xxxxxxxxxxx-20120201130957-ra3ot62j0bbxjnu1


** Changed in: openobject-server
       Status: Fix Committed => Fix Released

-- 
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:
  Fix Released

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