Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0053914 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Modules] Open API | major | always | 2023-11-10 23:30 | 2024-01-02 12:45 | |||
Reporter | ivazquez | View Status | public | |||||
Assigned To | Rajesh_18 | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
Regression date | ||||||||
Regression introduced by commit | ||||||||
Regression level | ||||||||
Review Assigned To | ||||||||
Support ticket | ||||||||
OBNetwork customer | Gold | |||||||
Regression introduced in release | ||||||||
Summary | 0053914: API Product Error Message not very descriptive | |||||||
Description | 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. | |||||||
Steps To Reproduce | 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 | |||||||
Proposed Solution | 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); | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0157983) hgbot (developer) 2023-12-06 14:46 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/81 [^] |
(0158761) hgbot (developer) 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 (developer) 2024-01-02 12:45 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/merge_requests/81 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2023-11-10 23:30 | ivazquez | New Issue | |
2023-11-10 23:30 | ivazquez | Assigned To | => Triage Platform Conn |
2023-11-10 23:30 | ivazquez | OBNetwork customer | => Gold |
2023-11-13 09:30 | marvintm | Assigned To | Triage Platform Conn => Retail |
2023-12-05 12:42 | Rajesh_18 | Assigned To | Retail => Rajesh_18 |
2023-12-05 12:42 | Rajesh_18 | Status | new => scheduled |
2023-12-06 14:46 | hgbot | Merge Request Status | => open |
2023-12-06 14:46 | hgbot | Note Added: 0157983 | |
2024-01-02 12:42 | hgbot | Merge Request Status | open => approved |
2024-01-02 12:45 | hgbot | Resolution | open => fixed |
2024-01-02 12:45 | hgbot | Status | scheduled => closed |
2024-01-02 12:45 | hgbot | Note Added: 0158761 | |
2024-01-02 12:45 | hgbot | Note Added: 0158762 |
Copyright © 2000 - 2009 MantisBT Group |