Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009531Openbravo ERPY. DBSourceManagerpublic2009-06-18 10:192009-06-20 00:00
marvintm 
marvintm 
urgentmajorhave not tried
closedfixed 
5
 
2.50MP2pi 
Core
No
0009531: If two export.databases are done, the first one works, the second one doesn't
When export.database is called, a security mechanism to verify that you are not overwritting file changes is executed. This mechanism compares the CRC of the files when the last update.database was done with the CRC of the current files. The problem is that export.database doesn't update the CRC after it has been completed, so the second export.database will fail as the CRC of the files will not be identical to the one before the last export.database.
Just do export.database twice. The second one will fail.
Export.database should update the CRC of the files.
No tags attached.
Issue History
2009-06-18 10:19marvintmNew Issue
2009-06-18 10:19marvintmAssigned To => marvintm
2009-06-18 10:51hgbotCheckin
2009-06-18 10:51hgbotNote Added: 0017414
2009-06-18 10:51hgbotStatusnew => resolved
2009-06-18 10:51hgbotResolutionopen => fixed
2009-06-18 10:55hgbotCheckin
2009-06-18 10:55hgbotNote Added: 0017415
2009-06-18 10:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bc424a3a9d41d138e5e918ffcfaf44d92ea998e0 [^]
2009-06-19 13:14sureshbabuStatusresolved => closed
2009-06-19 13:14sureshbabuNote Added: 0017480
2009-06-19 13:14sureshbabuFixed in Version => pi
2009-06-20 00:00anonymoussf_bug_id0 => 2809279

Notes
(0017414)
hgbot   
2009-06-18 10:51   
Repository: dbsourcemanager
Revision: 340
Author: marvintm
Date: 2009-06-18 10:51:23 +0200 (Thu, 18 Jun 2009)

Fixed issue 9531. Now export.database will update the CRC info.

---
U trunk/src/org/openbravo/ddlutils/task/ExportDatabase.java
---

https://dev.openbravo.com/websvn/dbsourcemanager/?rev=340&sc=1 [^]
(0017415)
hgbot   
2009-06-18 10:55   
Repository: erp/devel/pi
Changeset: bc424a3a9d41d138e5e918ffcfaf44d92ea998e0
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jun 18 10:51:36 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/bc424a3a9d41d138e5e918ffcfaf44d92ea998e0 [^]

Fixed issue 9531. Now export.database will update the CRC info.

---
M src-core/src/org/openbravo/utils/CheckSum.java
M src-db/database/lib/dbsourcemanager.jar
---
(0017480)
sureshbabu   
2009-06-19 13:14   
Tested can able to perform export.database twice