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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0029142
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformmajorsometimes2015-03-05 13:112022-02-01 08:09
ReporteralostaleView Statuspublic 
Assigned ToTriage Platform Base 
PriorityhighResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
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

0029142: update.database does not remove invalid rows with multiple level of cascaded FKs

DescriptionWhen updating database the step "removing invalid rows" tries to emulate FK cascade deletion (for cascaded FKs) for those tables where FKs are deactivated.

FK deactivation can occur:

* For AD tables: all of them are deactivated
* Other tables: they are recreated on

The problem is that this step does not take into account recreated tables nor FK dependencies with multiple levels.
Steps To Reproduce- Remove script implemented to fix 0029127
-Install PR14Q3
-Open Costing Rules window
-Create a new Record
-Execute Validate Costing Rule process
-Update to PR14Q4
   -> This error appears:

     [java] 87780 WARN - SQL Command failed with: ERROR: insert or update on table "ad_process_run" violates foreign key constraint "ad_process_run_ad_process_requ"
     [java] Detail: Key (ad_process_request_id)=(A4A686C15C074C80982C31D6943F46AB) is not present in table "ad_process_request".
     [java] 87785 WARN - -- END
     [java] ALTER TABLE AD_PROCESS_RUN
     [java] ADD CONSTRAINT AD_PROCESS_RUN_AD_PROCESS_REQU FOREIGN KEY (AD_PROCESS_REQUEST_ID) REFERENCES AD_PROCESS_REQUEST (AD_PROCESS_REQUEST_ID) ON DELETE CASCADE
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0029127 closedalostale PR14Q3 -> PR14Q4 update can fail activating FKs 
related to feature request 0029270 closedalostale prevent table recreation in update.database 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-03-05 13:11 alostale New Issue
2015-03-05 13:11 alostale Assigned To => alostale
2015-03-05 13:11 alostale Modules => Core
2015-03-05 13:11 alostale Triggers an Emergency Pack => No
2015-03-05 13:11 alostale Relationship added related to 0029127
2015-03-05 13:11 alostale Status new => acknowledged
2015-03-13 12:09 alostale Relationship added related to 0029270
2015-03-17 14:38 alostale Assigned To alostale => platform
2015-11-11 11:34 alostale Priority normal => high
2015-11-11 12:36 alostale Type defect => design defect
2022-02-01 08:09 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker