Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014402Openbravo ERPA. Platformpublic2010-09-02 12:192010-09-13 12:38
jpabloae 
marvintm 
urgentminoralways
closedfixed 
30Professional Appliance
pi 
2.50MP222.50MP22 
Core
No
0014402: import.sample.data: add an optional parameter to bypass the checkReferencedOrganizations validation
Currently the import.sample.data process runs the checkReferencedOrganizations validation, which is correct.

However started from 2.50MP21 this is causing problems with BigBazaar, which has forces us to disable the validation locally.
It would be nice if the install.source or import.sample.data could be run with an argument to disable this validation, so that we don't have to change anything locally. By default the validation should be enabled, like it currently is.
No tags attached.
related to defect 0014264 closed staffrm Referenced entity belongs to an organization which is not part of the natural tree 
Issue History
2010-09-02 12:19jpabloaeNew Issue
2010-09-02 12:19jpabloaeAssigned To => mtaal
2010-09-02 12:19jpabloaeIssue Monitored: iciordia
2010-09-02 20:00iciordiaAssigned Tomtaal => marvintm
2010-09-07 14:58hgbotCheckin
2010-09-07 14:58hgbotNote Added: 0030765
2010-09-07 14:58hgbotStatusnew => resolved
2010-09-07 14:58hgbotResolutionopen => fixed
2010-09-07 14:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c59596c69f9fc031e40955fe60f46f46989f9946 [^]
2010-09-07 16:04hgbotCheckin
2010-09-07 16:04hgbotNote Added: 0030771
2010-09-07 20:20hudsonbotCheckin
2010-09-07 20:20hudsonbotNote Added: 0030790
2010-09-07 20:20hudsonbotCheckin
2010-09-07 20:20hudsonbotNote Added: 0030792
2010-09-08 23:51jpabloaeNote Added: 0030872
2010-09-08 23:51jpabloaeStatusresolved => closed
2010-09-08 23:51jpabloaeFixed in Version => 2.50MP22
2010-09-09 00:31jpabloaeRelationship addedrelated to 0014264
2010-09-13 12:38anonymoussf_bug_id0 => 3065197

Notes
(0030765)
hgbot   
2010-09-07 14:58   
Repository: erp/devel/pi
Changeset: c59596c69f9fc031e40955fe60f46f46989f9946
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Sep 07 13:13:56 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c59596c69f9fc031e40955fe60f46f46989f9946 [^]

Fixed issue 14402. Added a property to bypass the checkReferencedOrganizations check.
The way this works is by setting the disableCheckReferencedOrganizations to true. For example, in import.sample.data:
ant impo.sample.data -DdisableCheckReferencedOrganizations=true

---
M build.xml
M src/build.xml
M src/org/openbravo/dal/core/OBInterceptor.java
M src/org/openbravo/service/db/ImportReferenceDataTask.java
---
(0030771)
hgbot   
2010-09-07 16:04   
Repository: erp/devel/pi
Changeset: 12afa365cf10cae573d807de4e5616db20a9f323
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Sep 07 16:03:38 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/12afa365cf10cae573d807de4e5616db20a9f323 [^]

Related to issue 14402. Prevented a NPE in the OBInterceptor when the ThreadLocal was not set

---
M src/org/openbravo/dal/core/OBInterceptor.java
---
(0030790)
hudsonbot   
2010-09-07 20:20   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/c59596c69f9f [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/d96658b2e9bd [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18356.obx [^]
(0030792)
hudsonbot   
2010-09-07 20:20   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/12afa365cf10 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/d96658b2e9bd [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18356.obx [^]
(0030872)
jpabloae   
2010-09-08 23:51   
Verified by running a full build with the BigBazaar.xml sampledata, as follows:

ant install.source -DdisableCheckReferencedOrganizations=true

So I'm closing the issue.