Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0029869
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorunable to reproduce2015-05-13 16:152015-05-13 16:15
ReportermalsasuaView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionCommunity ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0029869: sometimes, the json order is corrupt: createdBy and updatedBy are 'null'

DescriptionSometimes, 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 Reproduceexample of json corrupted:

{"hasbeenpaid":"Y","isbeingprocessed":"N","id":"0BBF3B1F798853482C05B8CFB611088B","client":"7E5FF7141C9F48378DFAC44C628C5AC0","organization":"05DDB9A46C6241D8B67F81D6F4F0918B", "createdBy":"null","updatedBy":"null","documentType":"2BE3965F710D432A9AE0006B1BFFA894", ...}
Proposed SolutionIn 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");
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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 Triggers an Emergency Pack => No


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker