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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0054102
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Openbravo Business APIminoralways2023-12-12 10:432023-12-12 11:06
ReportercaristuView Statuspublic 
Assigned ToTriage Platform Conn 
PriorityhighResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0054102: Erroneous export WS response can contain an unterminated json content

DescriptionWhen 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.
Steps To Reproduce1) 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":
Proposed SolutionCatch 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 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0054015 closedTriage Platform Conn API failing but responding 200 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2023-12-12 10:43 caristu New Issue
2023-12-12 10:43 caristu Assigned To => Triage Platform Conn
2023-12-12 10:43 caristu Triggers an Emergency Pack => No
2023-12-12 10:43 caristu Issue generated from 0054015
2023-12-12 10:43 caristu Relationship added related to 0054015
2023-12-12 10:44 caristu Project Retail Modules => Modules
2023-12-12 10:45 caristu Category Retail API => Openbravo Business API
2023-12-12 10:47 caristu Summary API failing but responding 200 => Erroneus export WS request response can contain an unterminated json content
2023-12-12 10:47 caristu Status new => acknowledged
2023-12-12 10:57 caristu Steps to Reproduce Updated View Revisions
2023-12-12 11:04 caristu Summary Erroneus export WS request response can contain an unterminated json content => Erroneus export WS response can contain an unterminated json content
2023-12-12 11:05 caristu Proposed Solution updated
2023-12-12 11:06 caristu Summary Erroneus export WS response can contain an unterminated json content => Erroneous export WS response can contain an unterminated json content


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker