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

View Revisions: Issue #41399 All Revisions ] Back to Issue ]
Summary 0041399: Identifies record univocally feature doesn't work with derived properties
Revision 2019-08-13 13:52 by caristu
Steps To Reproduce 1- Install the External Integration Test module[1]
2- Apply the attached patch (testIssue41399.diff) which provides a test that processes an entity mapping with a One To Many property mapping whose corresponding value is null. Note that in this case, the One To Many property mapping is defined to accept null values.
3- Run the test. It fails with a CheckException. Stack trace error:

org.openbravo.base.util.CheckException: Property organization.id does not exist for entity BusinessPartner
    at org.openbravo.base.util.Check.isNotNull(Check.java:72)
    at org.openbravo.base.model.Entity.getProperty(Entity.java:570)
    at org.openbravo.base.model.Entity.getProperty(Entity.java:552)
    at org.openbravo.service.external.integration.importer.DalSynchronizableBusinessObjectImporter.getTargetProperty(DalSynchronizableBusinessObjectImporter.java:207)
...
Revision 2019-08-13 13:27 by caristu
Steps To Reproduce 1- Install the External Integration Test module[1]
2- Apply the attached patch (testIssue41399.diff) which provides a test that processes an entity mapping with a One To Many property mapping whose corresponding value is null. Note that in this case, the One To Many property mapping is defined to accept null values.
3- Run the test. It fails with a NPE. Stack trace error:

java.lang.NullPointerException
    at org.openbravo.service.external.integration.mapping.OneToManyEntityPropertyMapping.setMappingValue(OneToManyEntityPropertyMapping.java:118)
    at org.openbravo.service.external.integration.mapping.DirectPropertyMapping.setMappingValue(DirectPropertyMapping.java:1)
Revision 2019-08-13 13:25 by caristu
Steps To Reproduce n/a


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker