Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||||||||||||
View Issue Details | |||||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||||||||||
0051028 | Retail Modules | Retail API | public | 2022-11-29 10:15 | 2022-12-16 00:41 | ||||||||||||||||||||||||
Reporter | nicola_uva | ||||||||||||||||||||||||||||
Assigned To | ranjith_qualiantech_com | ||||||||||||||||||||||||||||
Priority | immediate | Severity | major | Reproducibility | always | ||||||||||||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||||||||||||
Product Version | pi | ||||||||||||||||||||||||||||
Target Version | pi | Fixed in Version | |||||||||||||||||||||||||||
Merge Request Status | |||||||||||||||||||||||||||||
Review Assigned To | |||||||||||||||||||||||||||||
OBNetwork customer | |||||||||||||||||||||||||||||
Support ticket | |||||||||||||||||||||||||||||
Regression level | |||||||||||||||||||||||||||||
Regression date | |||||||||||||||||||||||||||||
Regression introduced in release | |||||||||||||||||||||||||||||
Regression introduced by commit | https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/88903ac5c94205168d78a8ab7bb9c4d5cbba4b02 [^] | ||||||||||||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||||||||||||
Summary | 0051028: Export User API - Mapping Broken | ||||||||||||||||||||||||||||
Description | User 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: https://issues.openbravo.com/view.php?id=50689 [^] which adds an import java property mapping handler for the UserRoles | ||||||||||||||||||||||||||||
Steps To Reproduce | 1)Using Postman perform the following request https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ws/org.openbravo.retail.api.ExportService/User/byUsername?username=Openbravo [^] 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(PropertyMapper.java:163) ~[classes/:?] at org.openbravo.service.external.integration.export.SynchronizableBusinessObjectExporter.exportToSynchronizableBusinessObject(SynchronizableBusinessObjectExporter.java:129) ~[classes/:?] at org.openbravo.service.external.integration.export.SynchronizableBusinessObjectExporter.exportToSynchronizableBusinessObject(SynchronizableBusinessObjectExporter.java:108) ~[classes/:?] at org.openbravo.service.external.integration.mapping.OneToManyEntityPropertyMapping.getTargetList(OneToManyEntityPropertyMapping.java:104) ~[classes/:?] at org.openbravo.service.external.integration.mapping.OneToManyEntityPropertyMapping.getMappingValueForExport(OneToManyEntityPropertyMapping.java:92) ~[classes/:?] at org.openbravo.service.external.integration.mapping.DirectPropertyMapping.getMappingValueForExport(DirectPropertyMapping.java:1) ~[classes/:?] at org.openbravo.service.external.integration.mapping.PropertyMapping.addMappingValue(PropertyMapping.java:77) ~[classes/:?] at org.openbravo.service.external.integration.mapping.PropertyMapper.createSynchronizableBusinessObject(PropertyMapper.java:155) ~[classes/:?] at org.openbravo.service.external.integration.export.SynchronizableBusinessObjectExporter.exportToSynchronizableBusinessObject(SynchronizableBusinessObjectExporter.java:129) ~[classes/:?] at org.openbravo.api.ApiExporter.lambda$10(ApiExporter.java:344) ~[classes/:?] | ||||||||||||||||||||||||||||
Proposed Solution | define a separate entity mapping for the UserRoles entity but for the EXPORT flow" + add a test case that seems it is missing | ||||||||||||||||||||||||||||
Additional Information | |||||||||||||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||||||||||||
Relationships |
| ||||||||||||||||||||||||||||
Attached Files | |||||||||||||||||||||||||||||
Issue History | |||||||||||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||||||||||
2022-11-29 10:15 | nicola_uva | New Issue | |||||||||||||||||||||||||||
2022-11-29 10:15 | nicola_uva | Assigned To | => Triage Omni OMS | ||||||||||||||||||||||||||
2022-11-29 10:15 | nicola_uva | Regression introduced by commit | => https://issues.openbravo.com/view.php?id=50689 [^] | ||||||||||||||||||||||||||
2022-11-29 10:15 | nicola_uva | Triggers an Emergency Pack | => No | ||||||||||||||||||||||||||
2022-11-29 10:16 | nicola_uva | Relationship added | caused by 0050689 | ||||||||||||||||||||||||||
2022-11-29 10:17 | nicola_uva | Regression introduced by commit | https://issues.openbravo.com/view.php?id=50689 [^] => https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/88903ac5c94205168d78a8ab7bb9c4d5cbba4b02 [^] | ||||||||||||||||||||||||||
2022-11-29 10:37 | nicola_uva | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=25178#r25178 | ||||||||||||||||||||||||||
2022-11-30 13:45 | aferraz | Assigned To | Triage Omni OMS => ebecerra | ||||||||||||||||||||||||||
2022-12-08 07:59 | hgbot | Note Added: 0144486 | |||||||||||||||||||||||||||
2022-12-12 10:53 | guilleaer | Assigned To | ebecerra => ranjith_qualiantech_com | ||||||||||||||||||||||||||
2022-12-12 10:53 | guilleaer | Status | new => scheduled | ||||||||||||||||||||||||||
2022-12-12 13:25 | hgbot | Resolution | open => fixed | ||||||||||||||||||||||||||
2022-12-12 13:25 | hgbot | Status | scheduled => closed | ||||||||||||||||||||||||||
2022-12-12 13:25 | hgbot | Note Added: 0144521 | |||||||||||||||||||||||||||
2022-12-12 13:25 | hgbot | Note Added: 0144522 | |||||||||||||||||||||||||||
2022-12-16 00:41 | guilleaer | Status | closed => new | ||||||||||||||||||||||||||
2022-12-16 00:41 | guilleaer | Resolution | fixed => open | ||||||||||||||||||||||||||
2022-12-16 00:41 | guilleaer | Status | new => scheduled | ||||||||||||||||||||||||||
2022-12-16 00:41 | guilleaer | Status | scheduled => resolved | ||||||||||||||||||||||||||
2022-12-16 00:41 | guilleaer | Resolution | open => fixed | ||||||||||||||||||||||||||
2022-12-16 00:41 | guilleaer | Status | resolved => closed | ||||||||||||||||||||||||||
2023-10-04 17:13 | caristu | Relationship added | related to 0053588 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|