Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0029869 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Retail Modules] Web POS | minor | unable to reproduce | 2015-05-13 16:15 | 2015-05-13 16:15 | |||||||
Reporter | malsasua | View Status | public | |||||||||
Assigned To | Retail | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||||||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||||||
Product Version | SCM revision | |||||||||||
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"); | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
![]() |
|
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |