Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0038496 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Retail Modules] Web POS | major | have not tried | 2018-05-07 15:24 | 2018-10-08 20:58 | |||||||
Reporter | AugustoMauch | View Status | public | |||||||||
Assigned To | rqueralta | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | scheduled | 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 | |||||||||||
Review Assigned To | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0038496: Exception in ProcessHQLQuery can result in error JSON response being not properly formatted | |||||||||||
Description | If there is an exception in the ProcessHQLQuery after this line [1] but before this line [2], the resulting error JSON response will not be properly formatted, because it will contain the start of the data json array declaration but will not contain the closing brace. [1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java#l277 [^] [2] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java#l318 [^] | |||||||||||
Steps To Reproduce | Force any runtime exception between these two lines [1], [2]. Login in in the POS, and check that the exception is captured and that the resulting JSON response is not properly formatted. It will look like this: { "response": { "data": ["status": -1, "error": { "message": "", "title": "", "className": "java.lang.ClassCastException" }, "totalRows": 0 } } [1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java#l277 [^] [2] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java#l318 [^] | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2018-05-07 15:24 | AugustoMauch | New Issue | |
2018-05-07 15:24 | AugustoMauch | Assigned To | => Retail |
2018-05-07 15:24 | AugustoMauch | Triggers an Emergency Pack | => No |
2018-05-07 15:40 | AugustoMauch | Relationship added | related to 0038497 |
2018-10-08 20:58 | rqueralta | Assigned To | Retail => rqueralta |
2018-10-08 20:58 | rqueralta | Status | new => scheduled |
Copyright © 2000 - 2009 MantisBT Group |