Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0029869 | Retail Modules | Web POS | public | 2015-05-13 16:15 | 2015-05-13 16:15 |
Reporter | malsasua | ||||
Assigned To | Retail | ||||
Priority | normal | Severity | minor | Reproducibility | unable to reproduce |
Status | new | Resolution | open | ||
Platform | OS | 20 | OS Version | Community Appliance | |
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 | 0029869: sometimes, the json order is corrupt: createdBy and updatedBy are 'null' | ||||
Description | Sometimes, the json order created in webpos, that it is sent to OrderLoader.java is corrupted, because the fields createdBy and updatedBy are null. When it happens, the webpos never is synced, and the receipts are in local database. | ||||
Steps To Reproduce | example of json corrupted: {"hasbeenpaid":"Y","isbeingprocessed":"N","id":"0BBF3B1F798853482C05B8CFB611088B","client":"7E5FF7141C9F48378DFAC44C628C5AC0","organization":"05DDB9A46C6241D8B67F81D6F4F0918B", "createdBy":"null","updatedBy":"null","documentType":"2BE3965F710D432A9AE0006B1BFFA894", ...} | ||||
Proposed Solution | In the DataSynchronizationProcess.java, in this line 107: String userId = jsonRecord.has("createdBy") ? jsonRecord .getString("createdBy") : jsonRecord.getString("userId"); should be replaced by String userId = jsonRecord.has("createdBy") && !"null".equals(jsonRecord.getString("createdBy")) ? jsonRecord .getString("createdBy") : jsonRecord.getString("userId"); | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-05-13 16:15 | malsasua | New Issue | |||
2015-05-13 16:15 | malsasua | Assigned To | => Retail | ||
2015-05-13 16:15 | malsasua | OBNetwork customer | => No | ||
2015-05-13 16:15 | malsasua | Triggers an Emergency Pack | => No |
There are no notes attached to this issue. |