Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0054015 | Modules | Openbravo Business API | public | 2023-11-23 12:06 | 2023-12-12 10:44 |
|
Reporter | javietxe | |
Assigned To | Triage Platform Conn | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0054015: API failing but responding 200 |
Description | When an API is called and it has a mapping error, the response seems to be a success response (it is marked as a 200) but the JSON is not valid. |
Steps To Reproduce | An example:
- Create a Shipment with a shipment line without setting a bin to it (or deleting it if it's automatically set)
- Through postman, do this call setting the date of the Shipment created
https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi/ws/org.openbravo.api.ExportService/ShipmentInOut/goodsReceiptByMovementDate?movementDate=2012-07-24&_page=1&_pageSize=5 [^]
Check that even the response has a JSON and the response code is a 200, the JSON is not complete.
Check also that in the openbravo.logs it exists a stacktrace with the error. In this example:
ERROR org.openbravo.service.web.BaseWebServiceServlet - Value of property bin is null but it does not accept null values
org.openbravo.base.exception.OBException: Value of property bin is null but it does not accept null values |
Proposed Solution | When this type of error happens, the response code has to be an error. |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0054016 | | closed | ramprakash | Retail Modules | Wrong mapping in shipment lines | related to | defect | 0054102 | | acknowledged | Triage Platform Conn | Modules | Erroneous export WS response can contain an unterminated json content |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2023-11-23 12:06 | javietxe | New Issue | |
2023-11-23 12:06 | javietxe | Assigned To | => Triage Platform Conn |
2023-11-23 12:06 | javietxe | Triggers an Emergency Pack | => No |
2023-11-23 12:24 | javietxe | Relationship added | related to 0054016 |
2023-11-23 12:29 | javietxe | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=27189#r27189 |
2023-12-11 12:07 | hgbot | Note Added: 0158039 | |
2023-12-12 10:33 | hgbot | Resolution | open => fixed |
2023-12-12 10:33 | hgbot | Status | new => closed |
2023-12-12 10:33 | hgbot | Note Added: 0158074 | |
2023-12-12 10:33 | hgbot | Note Added: 0158075 | |
2023-12-12 10:43 | caristu | Issue cloned | 0054102 |
2023-12-12 10:43 | caristu | Relationship added | related to 0054102 |
2023-12-12 10:44 | caristu | Project | Retail Modules => Modules |
2023-12-12 10:44 | caristu | Category | Retail API => Openbravo Business API |