Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036097Openbravo ERPA. Platformpublic2017-05-25 10:162017-05-29 17:43
alostale 
alostale 
normalminorhave not tried
closedfixed 
5
 
3.0PR17Q3 
caristu
Core
No
0036097: applying dataset fails if it contains properties not present in the target system
If a dataset contains information for properties that are not present in the instance that is being imported to, it fails.

This situation can occur if Dataset was exported from a version that had that properties but the instance it's imported in is in a different version.

1. Revert patch for 0036092
2. Follow steps in 0036092
In most of the cases those properties are properly defaulted, not relevant or even with null value. It would be better not to fail but just to warn in log and continue.

Note also the opposite case was already correctly ignored: this is, entity in target instance defining some properties the dataset has not because it was exported in a version they didn't exist.
No tags attached.
related to defect 0036092 closed alostale Failed to apply roles dataset 
depends on backport 00361033.0PR17Q2.1 closed caristu applying dataset fails if it contains properties not present in the target system 
depends on backport 00361043.0PR17Q1.2 closed alostale applying dataset fails if it contains properties not present in the target system 
Issue History
2017-05-25 10:16alostaleNew Issue
2017-05-25 10:16alostaleAssigned To => platform
2017-05-25 10:16alostaleModules => Core
2017-05-25 10:16alostaleTriggers an Emergency Pack => No
2017-05-25 10:17alostaleRelationship addedrelated to 0036092
2017-05-25 10:33hgbotCheckin
2017-05-25 10:33hgbotNote Added: 0096786
2017-05-25 10:33hgbotStatusnew => resolved
2017-05-25 10:33hgbotResolutionopen => fixed
2017-05-25 10:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/78f84b2b36fccfcba18ccd75271a2acc436ddb01 [^]
2017-05-25 11:22alostaleProposed Solution updated
2017-05-25 12:41alostaleStatusresolved => new
2017-05-25 12:41alostaleResolutionfixed => open
2017-05-25 12:41alostaleAssigned Toplatform => alostale
2017-05-25 12:42alostaleStatusnew => scheduled
2017-05-25 12:42alostaleStatusscheduled => resolved
2017-05-25 12:42alostaleResolutionopen => fixed
2017-05-25 12:45alostaleReview Assigned To => caristu
2017-05-26 08:31hgbotCheckin
2017-05-26 08:31hgbotNote Added: 0096827
2017-05-26 08:32caristuNote Added: 0096828
2017-05-26 08:32caristuStatusresolved => closed
2017-05-26 08:32caristuFixed in Version => 3.0PR17Q3
2017-05-29 17:43hudsonbotCheckin
2017-05-29 17:43hudsonbotNote Added: 0096988
2017-05-29 17:43hudsonbotCheckin
2017-05-29 17:43hudsonbotNote Added: 0096994

Notes
(0096786)
hgbot   
2017-05-25 10:33   
Repository: erp/devel/pi
Changeset: 78f84b2b36fccfcba18ccd75271a2acc436ddb01
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu May 25 10:32:49 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/78f84b2b36fccfcba18ccd75271a2acc436ddb01 [^]

fixed bug 36097: dataset fails if it has properties not in target system

  Trying to apply a dataset with information for properties not present in target
  instance failed.

  Now in this case the property is just ignored and the process continues.

---
M src/org/openbravo/dal/xml/XMLEntityConverter.java
---
(0096827)
hgbot   
2017-05-26 08:31   
Repository: erp/devel/pi
Changeset: 8ce08c4ce5476316363b1518074b2ca88cb7b5d5
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri May 26 08:30:10 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8ce08c4ce5476316363b1518074b2ca88cb7b5d5 [^]

related to issue 36097: fix typo

---
M src/org/openbravo/dal/xml/XMLEntityConverter.java
---
(0096828)
caristu   
2017-05-26 08:32   
Code reviewed + testing OK.
(0096988)
hudsonbot   
2017-05-29 17:43   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/1ee70113bdc4 [^]
Maturity status: Test
(0096994)
hudsonbot   
2017-05-29 17:43   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/1ee70113bdc4 [^]
Maturity status: Test