Openbravo Issue Tracking System - Retail Modules | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0038496 | Retail Modules | Web POS | public | 2018-05-07 15:24 | 2018-10-08 20:58 | |||||||
| Reporter | AugustoMauch | |||||||||||
| Assigned To | rqueralta | |||||||||||
| Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
| Status | scheduled | Resolution | open | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | |||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Support ticket | ||||||||||||
| 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 [^] | |||||||||||
| Proposed Solution | ||||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| 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 | OBNetwork customer | => No | |||||||||
| 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 | |||||||||
| There are no notes attached to this issue. |