Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0045184 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | always | 2020-10-05 08:46 | 2020-11-18 12:21 | |||
Reporter | rafael_salmean | View Status | public | |||||
Assigned To | jorge-garcia | |||||||
Priority | normal | Resolution | no change required | Fixed in Version | ||||
Status | closed | 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 | jorge-garcia | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0045184: Unsafe division may cause division by 0 | |||||||
Description | One of our clients has encountered a situation where the till crashes and a cache refresh is needed. After some research, a division by 0 was found and a failsafe was put in place. Solution discussed directly with Antonio Moreno. | |||||||
Proposed Solution | Added diff file as proposed solution. | |||||||
Tags | No tags attached. | |||||||
Attached Files | order.diff [^] (807 bytes) 2020-10-05 08:46 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0124478) jorge-garcia (reporter) 2020-11-18 12:21 |
After discussing with reporter: OB Product's API (PaidReceipts.java) to load ticket from backoffice does not load those lines from the ticket that are marked as deleted (obposIsDeleted field in db). As these lines are not loaded, the problem reported in this issue could not happened in standard product. For customer code, two different options we can provide: 1) Do not load the obposisdeletedLines as PaidReceipts does right now 2) In case those lines are required to be loaded in WebPOS, instead of adding all loaded lines to the lines of the ticket, set lines mark as obposIsDeleted to the deletedLines array of the ticket. |
Issue History | |||
Date Modified | Username | Field | Change |
2020-10-05 08:46 | rafael_salmean | New Issue | |
2020-10-05 08:46 | rafael_salmean | Assigned To | => Retail |
2020-10-05 08:46 | rafael_salmean | File Added: order.diff | |
2020-10-05 08:46 | rafael_salmean | Triggers an Emergency Pack | => No |
2020-11-16 12:35 | rafael_salmean | Summary | Deleting a Kept Ticket with discounts blocks Web POS => Unsafe division may cause division by 0 |
2020-11-16 12:35 | rafael_salmean | Description Updated | View Revisions |
2020-11-16 12:35 | rafael_salmean | Steps to Reproduce Updated | View Revisions |
2020-11-16 12:35 | rafael_salmean | Proposed Solution updated | |
2020-11-16 12:38 | rafael_salmean | Resolution time | => 1607295600 |
2020-11-17 16:10 | jorge-garcia | Assigned To | Retail => jorge-garcia |
2020-11-17 16:54 | jorge-garcia | Status | new => scheduled |
2020-11-18 12:21 | jorge-garcia | Review Assigned To | => jorge-garcia |
2020-11-18 12:21 | jorge-garcia | Note Added: 0124478 | |
2020-11-18 12:21 | jorge-garcia | Status | scheduled => closed |
2020-11-18 12:21 | jorge-garcia | Resolution | open => no change required |
Copyright © 2000 - 2009 MantisBT Group |