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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0053914
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Open APImajoralways2023-11-10 23:302024-01-02 12:45
ReporterivazquezView Statuspublic 
Assigned ToRajesh_18 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Statusapproved
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Support ticket
OBNetwork customerGold
Regression introduced in release
Summary

0053914: API Product Error Message not very descriptive

DescriptionWhen 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 Reproducehttp://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 SolutionRetailApiImportProductJavaPropertyMappingHandler.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);
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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 [^]

- Issue History
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
Powered by Mantis Bugtracker