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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0044433
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] External Integration Infrastructureminorhave not tried2020-06-19 17:052020-07-03 19:18
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision2150ee683e82
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned ToAugustoMauch
Regression introduced in release
Summary

0044433: A property mapping based on a multi path can't be used as identifies record univocally

DescriptionA property mapping based on a on a multi path (ex: businessPartner.name) property can't be used as identifies record univocally
Steps To Reproduce1- Install the org.openbravo.service.external.integration.tests
2- Apply the attached patch. It provides a new entity mapping definition that has two properties based in a multipath (user.name and role.name) having both with the "identifies record univocally flag" enabled
3- Run the test. It will fail with the following error: org.hibernate.QueryException: could not resolve property
TagsNo tags attached.
Attached Filesdiff file icon issue44433.test.diff [^] (10,343 bytes) 2020-06-25 10:18 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0121057)
caristu (manager)
2020-06-25 10:18

MR: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration/-/merge_requests/2/ [^]
(0121255)
hgbot (developer)
2020-07-03 18:43

Repository: erp/pmods/org.openbravo.service.external.integration
Changeset: 2150ee683e826820de999aed5982248eb7092479
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Jun 25 10:09:56 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration/rev/2150ee683e826820de999aed5982248eb7092479 [^]

Fixes BUG-44433: A multi path property can't be used as record identifier

  Refactoring logic that handles "Identifies Record Univocally" feature
to make use of an OBQuery instead of an OBCriteria. Thus we can use
multipath properties to find whether the record exists or not.

---
M src/org/openbravo/service/external/integration/importer/DalSynchronizableBusinessObjectImporter.java
---
(0121256)
hgbot (developer)
2020-07-03 19:17

Repository: erp/pmods/org.openbravo.service.external.integration.tests
Changeset: 172a0de144d898fb42cf75f7f7de28b3382424e8
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Jul 03 19:17:35 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration.tests/rev/172a0de144d898fb42cf75f7f7de28b3382424e8 [^]

Related to BUG-44433: Add test case

---
M src-db/database/sourcedata/OBEI_ENTITY_MAPPING.xml
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
M src-test/org/openbravo/service/external/integration/test/TestConstants.java
A src-test/org/openbravo/service/external/integration/test/_import/UserRolesImportTest.java
---

- Issue History
Date Modified Username Field Change
2020-06-19 17:05 caristu New Issue
2020-06-19 17:05 caristu Assigned To => caristu
2020-06-22 09:53 javietxe Issue Monitored: javietxe
2020-06-25 10:05 caristu Steps to Reproduce Updated View Revisions
2020-06-25 10:05 caristu Review Assigned To => AugustoMauch
2020-06-25 10:18 caristu File Added: issue44433.test.diff
2020-06-25 10:18 caristu Note Added: 0121057
2020-07-03 18:43 hgbot Checkin
2020-07-03 18:43 hgbot Note Added: 0121255
2020-07-03 18:43 hgbot Status new => resolved
2020-07-03 18:43 hgbot Resolution open => fixed
2020-07-03 18:43 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration/rev/2150ee683e826820de999aed5982248eb7092479 [^]
2020-07-03 19:17 hgbot Checkin
2020-07-03 19:17 hgbot Note Added: 0121256
2020-07-03 19:18 caristu Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker