← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 655087] Re: Dump/Restore of db names with embedded whitespace fails

 

Hello,
The dump/restore is now fixed with regard to db names with whitespace, after the recent move to subprocess package for external processes. Updating to the latest server should solve your problem.

However, due to other technical constraints in the server, database
names with whitespace are not supported, so we still recommend having no
whitespace in the names (it's really a minor issue anyway, and renaming
a database is trivial too)

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

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/655087

Title:
  Dump/Restore of db names with embedded whitespace fails

Status in OpenObject Server:
  Fix Released

Bug description:
  Using OpenERP 5.0.14

Trying to dump or restore databases with whitespace in their names fails.
For example: Trying to dump a database called "FY Test" results in this server error:

[2010-10-05 09:09:34,068][?] INFO:web-services:DUMP DB: FY Test
pg_dump: too many command-line arguments (first is "Test")
Try "pg_dump --help" for more information.

Trying to restore the same database results in:

[2010-10-05 09:46:52,637][template1] INFO:web-services:RESTORE DB: FY Test
pg_restore: [archiver] could not open input file "Test": No such file or directory

I have attached a patch that fixes this for me.