Openbravo Issue Tracking System - Modules
View Issue Details
0053914ModulesOpen APIpublic2023-11-10 23:302024-01-02 12:45
ivazquez 
Rajesh_18 
highmajoralways
closedfixed 
5
 
 
approved
Gold
0053914: API Product Error Message not very descriptive
When you try to update a product through the API and in the JSON you send you set an Assortment that does not exist in the back office, the error message is very nondescript and makes the customer have to resort to Support to fix the problem.
http://localhost:8080/openbravo/ws/org.openbravo.api.ImportService/Product [^]

Make the API call and in the JSON request, add an Assortment that does not exist in the back office.

In the EDL Request line we will get an error like the following:

Error while importing an item: Error applying import product java property mapping
RetailApiImportProductJavaPropertyMappingHandler.java

In the method setPropertyInImportedObject we have a Try and Catch block.

In the throw new OBException made the following change:

From: throw new OBException(
          "Error applying import product java property mapping", ex);

To: throw new OBException(
          "Error applying import product java property mapping " +
ex.getMessage(), ex);
No tags attached.
Issue History
2023-11-10 23:30ivazquezNew Issue
2023-11-10 23:30ivazquezAssigned To => Triage Platform Conn
2023-11-10 23:30ivazquezOBNetwork customer => Gold
2023-11-13 09:30marvintmAssigned ToTriage Platform Conn => Retail
2023-12-05 12:42Rajesh_18Assigned ToRetail => Rajesh_18
2023-12-05 12:42Rajesh_18Statusnew => scheduled
2023-12-06 14:46hgbotMerge Request Status => open
2023-12-06 14:46hgbotNote Added: 0157983
2024-01-02 12:42hgbotMerge Request Statusopen => approved
2024-01-02 12:45hgbotResolutionopen => fixed
2024-01-02 12:45hgbotStatusscheduled => closed
2024-01-02 12:45hgbotNote Added: 0158761
2024-01-02 12:45hgbotNote Added: 0158762

Notes
(0157983)
hgbot   
2023-12-06 14:46   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/81 [^]
(0158761)
hgbot   
2024-01-02 12:45   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api [^]
Changeset: 121ebc12c3d5fd68bcfa5a9404a4035ec18e25b7
Author: Rajesh Senthilkumar <rajesh.senthilkumar.ext@openbravo.com>
Date: 02-01-2024 11:45:04
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/commit/121ebc12c3d5fd68bcfa5a9404a4035ec18e25b7 [^]

Fixed ISSUE-53914: API Product Error Message is now more descriptive

---
M src/org/openbravo/retail/api/mappings/product/RetailApiImportProductJavaPropertyMappingHandler.java
---
(0158762)
hgbot   
2024-01-02 12:45   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/81 [^]