Can not restore database due to bad tempory file path

Bug #859720 reported by Loic Alba
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
Unassigned

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

Related branches

Changed in openobject-server:
status: New → Triaged
Revision history for this message
Antony Lesuisse (OpenERP) (al-openerp) wrote :

Thanks for the fix hint, this should be fixed in
4060 revid:<email address hidden>

Changed in openobject-server:
importance: Undecided → Low
status: Triaged → Fix Released
Changed in openobject-server:
milestone: none → 6.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.