← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 859720] [NEW] Can not restore database due to bad tempory file path

 

Public bug reported:

Hi,

My platform is :
* Windows 2003 / Windows 2008
* OpenERP 6.0.3 AllInOne (Try on stable version and r3497)

I try restore a saved database.
The result of restore contains always sample data.

It seems to be the result of the following command :
pg_restore --no-owner --username=openpg --host=localhost --port=5432 --dbname=a4 " C:\WINDOWS\TEMP\s2oo.3"

As you can see, there is a space beetween " and C:\
So pg_restore does not find the file.

Looking in source, I think the problem is located in web_services.py file on line 241 :
args2.append(' ' + tmpfile)
In my opinion, the added space is not necessary but I do not have development environment to try this.

Regards
Loïc Alba

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

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

Title:
  Can not restore database due to bad tempory file path

Status in OpenERP Server:
  New

Bug description:
  Hi,

  My platform is :
  * Windows 2003 / Windows 2008
  * OpenERP 6.0.3 AllInOne (Try on stable version and r3497)

  I try restore a saved database.
  The result of restore contains always sample data.

  It seems to be the result of the following command :
  pg_restore --no-owner --username=openpg --host=localhost --port=5432 --dbname=a4 " C:\WINDOWS\TEMP\s2oo.3"

  As you can see, there is a space beetween " and C:\
  So pg_restore does not find the file.

  Looking in source, I think the problem is located in web_services.py file on line 241 :
  args2.append(' ' + tmpfile)
  In my opinion, the added space is not necessary but I do not have development environment to try this.

  Regards
  Loïc Alba

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


Follow ups

References