Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016422
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Y. DBSourceManagermajorhave not tried2011-03-22 14:382011-06-10 13:20
ReportermarvintmView Statuspublic 
Assigned Tomarvintm 
PriorityurgentResolutionfixedFixed in Version3.0RC5
StatusclosedFix in branchFixed in SCM revisione3a7846219dd
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016422: Local changes detected when a database is exported with pg_dump and imported again

DescriptionWhen a database is exported and imported again with pg_dump/pg_restore, the ad_db_modified function finds changes (which do not exist) in the database structure.

The problem happens because PostsgreSQL adds some characters ('()' and '[]') to the database views and checks. Then, the calculated mp5 is different, and therefore, changes are detected.
Steps To ReproduceInstall the rc5 virtual appliance, and verify that when you try to install a module, pack, or Core obx, changes are detected in the database.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to backport 0016429 closedmarvintm Local changes detected when a database is exported with pg_dump and imported again 

-  Notes
(0035149)
hgbot (developer)
2011-03-22 15:10

Repository: erp/devel/pi
Changeset: 639512a95f28ff87313fecd58dd00ebd300f7027
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Mar 22 15:09:17 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/639512a95f28ff87313fecd58dd00ebd300f7027 [^]

Fixed issue 16422. dump/restore will no longer cause ad_db_modified to detect non-existant db structure changes

---
M src-db/database/model/prescript-PostgreSql.sql
---
(0035353)
psarobe (manager)
2011-03-30 09:00

Fixed in RC5EU1
(0035700)
hgbot (developer)
2011-04-07 11:10

Repository: erp/devel/pi
Changeset: e3a7846219dda22963ffe765ca76a537b9a3ceb2
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Mar 22 15:09:17 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e3a7846219dda22963ffe765ca76a537b9a3ceb2 [^]

Fixed issue 16422. dump/restore will no longer cause ad_db_modified to detect non-existant db structure changes

---
M src-db/database/model/prescript-PostgreSql.sql
---
(0038232)
shuehner (administrator)
2011-06-10 13:20

Tested in pi-mp0/pgsql now with clean db-state after pg_dump/pg_restore the next update.database does not complain about local changes.

However: side-effect of this fix is that any real local changes (in pgsql only) inside views + checks will never be detected anymore.

- Issue History
Date Modified Username Field Change
2011-03-22 14:38 marvintm New Issue
2011-03-22 14:38 marvintm Assigned To => marvintm
2011-03-22 14:38 marvintm Modules => Core
2011-03-22 15:10 hgbot Checkin
2011-03-22 15:10 hgbot Note Added: 0035149
2011-03-22 15:10 hgbot Status new => resolved
2011-03-22 15:10 hgbot Resolution open => fixed
2011-03-22 15:10 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/639512a95f28ff87313fecd58dd00ebd300f7027 [^]
2011-03-30 09:00 psarobe Note Added: 0035353
2011-03-30 09:00 psarobe Status resolved => closed
2011-03-30 09:00 psarobe Fixed in Version => 3.0RC5
2011-03-31 00:00 anonymous sf_bug_id 0 => 3261338
2011-04-07 11:10 hgbot Checkin
2011-04-07 11:10 hgbot Note Added: 0035700
2011-04-07 11:10 hgbot Status closed => resolved
2011-04-07 11:10 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/639512a95f28ff87313fecd58dd00ebd300f7027 [^] => http://code.openbravo.com/erp/devel/pi/rev/e3a7846219dda22963ffe765ca76a537b9a3ceb2 [^]
2011-06-10 13:19 plujan Relationship added related to 0016429
2011-06-10 13:20 shuehner Note Added: 0038232
2011-06-10 13:20 shuehner Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker