Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Retail APImajoralways2022-11-29 10:152022-12-16 07:27
Reporternicola_uvaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR22Q4.1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit [^]
Triggers an Emergency PackNo

0051172: Export User API - Mapping Broken

DescriptionUser export entity mapping is using an entity mapping of the import flow (UserRoles) to map the "roles" property
the error can be reproduced after this change: [^]
which adds an import java property mapping handler for the UserRoles
Steps To Reproduce1)Using Postman perform the following request [^]

2)in the openbravo log you can see an error

2022-11-28 13:25:24,162 [http-nio-8081-exec-3] ERROR org.openbravo.service.web.BaseWebServiceServlet - java.lang.UnsupportedOperationException: Operation not supported for ImportJavaPropertyMappingHandlers
org.openbravo.base.exception.OBException: java.lang.UnsupportedOperationException: Operation not supported for ImportJavaPropertyMappingHandlers
    at org.openbravo.service.external.integration.mapping.PropertyMapper.createSynchronizableBusinessObject( ~[classes/:?]
    at org.openbravo.service.external.integration.export.SynchronizableBusinessObjectExporter.exportToSynchronizableBusinessObject( ~[classes/:?]
    at org.openbravo.service.external.integration.export.SynchronizableBusinessObjectExporter.exportToSynchronizableBusinessObject( ~[classes/:?]
    at org.openbravo.service.external.integration.mapping.OneToManyEntityPropertyMapping.getTargetList( ~[classes/:?]
    at org.openbravo.service.external.integration.mapping.OneToManyEntityPropertyMapping.getMappingValueForExport( ~[classes/:?]
    at org.openbravo.service.external.integration.mapping.DirectPropertyMapping.getMappingValueForExport( ~[classes/:?]
    at org.openbravo.service.external.integration.mapping.PropertyMapping.addMappingValue( ~[classes/:?]
    at org.openbravo.service.external.integration.mapping.PropertyMapper.createSynchronizableBusinessObject( ~[classes/:?]
    at org.openbravo.service.external.integration.export.SynchronizableBusinessObjectExporter.exportToSynchronizableBusinessObject( ~[classes/:?]
    at org.openbravo.api.ApiExporter.lambda$10( ~[classes/:?]
Proposed Solutiondefine a separate entity mapping for the UserRoles entity but for the EXPORT flow" + add a test case that seems it is missing
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0051028pi closedranjith_qualiantech_com Export User API - Mapping Broken 

-  Notes
hgbot (developer)
2022-12-16 05:43

Merge Request created: [^]
hgbot (developer)
2022-12-16 07:27

Merge request merged: [^]
hgbot (developer)
2022-12-16 07:27

Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: 18ea94c8a46180e89e2839770f0957d0b6a899cc
Author: Ranjith S R <>
Date: 16-12-2022 10:10:37
URL: [^]

Fixed ISSUE-51172: Added OBToExternal entity mapping for UserRole

M src-db/database/sourcedata/OBEI_ENTITY_MAPPING.xml
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
M src-test/org/openbravo/api/export/

- Issue History
Date Modified Username Field Change
2022-12-16 00:41 guilleaer Type defect => backport
2022-12-16 00:41 guilleaer Target Version pi => RR22Q4.1
2022-12-16 05:43 hgbot Note Added: 0144752
2022-12-16 07:27 hgbot Resolution open => fixed
2022-12-16 07:27 hgbot Status scheduled => closed
2022-12-16 07:27 hgbot Note Added: 0144753
2022-12-16 07:27 hgbot Note Added: 0144754

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker