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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0044630
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] External Integration Infrastructureminorhave not tried2020-07-17 14:252020-07-24 09:03
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiona6c24088604a
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

0044630: Not possible to assign null value in multipath properties

DescriptionCurrently it is not possible to assign a null value into a property defined as multipath.
Steps To Reproduce1) Install the org.openbravo.service.external.integration.tests module.
2) Apply the attached test.diff path that contains a change that allows to reproduce the issue
3) Run the BusinessPartnerImportTest. Note that the importating is not done due to the mapping of the "Title" property. This property is defined as multipath ("greeting.name") and to accept null values, but when providing a null value for that property the import fails.

Stack trace of the error:

java.security.InvalidParameterException: No entry found in Greeting with name = null
    at org.openbravo.service.external.integration.mapping.DirectPropertyMapping.getReferencedRecord(DirectPropertyMapping.java:157)
    at org.openbravo.service.external.integration.mapping.DirectPropertyMapping.setMappingValue(DirectPropertyMapping.java:131)
    at org.openbravo.service.external.integration.mapping.DirectPropertyMapping.setMappingValue(DirectPropertyMapping.java:1)
    at org.openbravo.service.external.integration.mapping.PropertyMapping.importMappingValue(PropertyMapping.java:126)
    at
...
TagsNo tags attached.
Attached Filesdiff file icon test.diff [^] (2,810 bytes) 2020-07-17 14:50 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0044631 closedrqueralta Retail Modules The mapping for the genericProduct property in import Product endpoint is not correct 

-  Notes
(0121511)
caristu (manager)
2020-07-17 14:54

MR: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration/-/merge_requests/3 [^]
(0121590)
hgbot (developer)
2020-07-23 18:20

Repository: erp/pmods/org.openbravo.service.external.integration
Changeset: a6c24088604a699cdfe4d83a5e6285d30f5f0124
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Jul 17 14:53:06 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration/rev/a6c24088604a699cdfe4d83a5e6285d30f5f0124 [^]

Fixes ISSUE-44630: support null value in import multi-path property

---
M src/org/openbravo/service/external/integration/mapping/DirectPropertyMapping.java
---
(0121591)
hgbot (developer)
2020-07-23 18:22

Repository: erp/pmods/org.openbravo.service.external.integration.tests
Changeset: 6efbe9cc2920440f9411648a837a486543b93608
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Jul 23 18:22:03 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration.tests/rev/6efbe9cc2920440f9411648a837a486543b93608 [^]

Related to ISSUE-44630: add test case

---
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
M src-test/org/openbravo/service/external/integration/test/_import/BusinessPartnerImportTest.java
---

- Issue History
Date Modified Username Field Change
2020-07-17 14:25 caristu New Issue
2020-07-17 14:25 caristu Assigned To => platform
2020-07-17 14:26 caristu Assigned To platform => caristu
2020-07-17 14:26 caristu Review Assigned To => AugustoMauch
2020-07-17 14:29 caristu Relationship added blocks 0044631
2020-07-17 14:44 caristu Steps to Reproduce Updated View Revisions
2020-07-17 14:50 caristu File Added: test.diff
2020-07-17 14:54 caristu Note Added: 0121511
2020-07-23 18:20 hgbot Checkin
2020-07-23 18:20 hgbot Note Added: 0121590
2020-07-23 18:20 hgbot Status new => resolved
2020-07-23 18:20 hgbot Resolution open => fixed
2020-07-23 18:20 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration/rev/a6c24088604a699cdfe4d83a5e6285d30f5f0124 [^]
2020-07-23 18:22 hgbot Checkin
2020-07-23 18:22 hgbot Note Added: 0121591
2020-07-24 09:03 caristu Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker