Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0054102 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
defect | [Modules] Openbravo Business API | minor | always | 2023-12-12 10:43 | 2023-12-12 11:06 | ||||||
Reporter | caristu | View Status | public | ||||||||
Assigned To | Triage Platform Conn | ||||||||||
Priority | high | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | 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 | ||||||||||
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 | ||||||||||
Description | 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. | ||||||||||
Steps To Reproduce | 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": | ||||||||||
Proposed Solution | 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 [^] | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
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 |