Openbravo Issue Tracking System - Modules
View Issue Details
0054102ModulesOpenbravo Business APIpublic2023-12-12 10:432023-12-12 11:06
caristu 
Triage Platform Conn 
highminoralways
acknowledgedopen 
5
 
 
0054102: Erroneous export WS response can contain an unterminated json content
When the export API WS is called and it has a mapping error, the response content is an unterminated JSON.

Note that with issue 0054015 we fixed just the part of responding with an error status. But it would be nice to also avoid returning an incomplete JSON in the response content.
1) Choose an export API endpoint
2) Force a failure in the mapping used by that endpoint
3) Note that:
 3a) Now the response status is error (fixed by 0054015)
 3b) The content of the response is an unterminated json similar to this:

     {
    "data":
Catch the mapping error and include the failed item in an "errors" property in the response. Something similar to what is done here[1].

TBD: if we want to stop the export on the first failed item or not.

[1] https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-group-issues [^]
No tags attached.
related to defect 0054015 closed Triage Platform Conn API failing but responding 200 
Issue History
2023-12-12 10:43caristuNew Issue
2023-12-12 10:43caristuAssigned To => Triage Platform Conn
2023-12-12 10:43caristuTriggers an Emergency Pack => No
2023-12-12 10:43caristuIssue generated from0054015
2023-12-12 10:43caristuRelationship addedrelated to 0054015
2023-12-12 10:44caristuProjectRetail Modules => Modules
2023-12-12 10:45caristuCategoryRetail API => Openbravo Business API
2023-12-12 10:47caristuSummaryAPI failing but responding 200 => Erroneus export WS request response can contain an unterminated json content
2023-12-12 10:47caristuStatusnew => acknowledged
2023-12-12 10:57caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27222#r27222
2023-12-12 11:04caristuSummaryErroneus export WS request response can contain an unterminated json content => Erroneus export WS response can contain an unterminated json content
2023-12-12 11:05caristuProposed Solution updated
2023-12-12 11:06caristuSummaryErroneus export WS response can contain an unterminated json content => Erroneous export WS response can contain an unterminated json content

There are no notes attached to this issue.