Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0032863 | Retail Modules | Web POS | public | 2016-05-04 17:26 | 2022-11-29 13:12 | |||||||
Reporter | malsasua | |||||||||||
Assigned To | jorge-garcia | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | pi | |||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0032863: forbid to open two tabs in the same web browser with POS Terminal | |||||||||||
Description | if you open two tabs with POS terminal in the same browser, you can generate inconsistent data. It should not be possible to open the two tabs or one message should be displayed when it happens. It is possible although terminal authentication is enabled | |||||||||||
Steps To Reproduce | in web POS: . open tab1 URL: https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1 [^] . do login . open a new tab, URL: https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1 [^] . do login | |||||||||||
Proposed Solution | The main idea for the solution is to generate a unique id every time you access the application, save this id both in the local storage and in memory, and periodically compare both ids. If at some point these ids are different, it means that there has been a second version of the application opened in another tab. So the changes necessary would be the following: - When accessing the application, in ob-terminal-model, a unique random id should be generated. This id should be saved in the local storage, and in the terminal model itself (which is stored in memory). - There should also be a periodic timeout (with reasonable interval, like 30 seconds), which compares the value of this id in the terminal object, with the one stored in local storage. - If this timeout detects that the ids are different, then it needs to show a popup which should not be possible to close, and which explains to the user that there is already another tab open with the application. It's very important to define a different id per application, because it should be possible to keep different applications open at the same time. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-05-04 17:26 | malsasua | New Issue | ||||||||||
2016-05-04 17:26 | malsasua | Assigned To | => Retail | |||||||||
2016-05-04 17:26 | malsasua | Resolution time | => 1464213600 | |||||||||
2016-05-04 17:26 | malsasua | Triggers an Emergency Pack | => No | |||||||||
2016-05-05 10:39 | Orekaria | Type | defect => feature request | |||||||||
2016-05-05 10:39 | Orekaria | Status | new => acknowledged | |||||||||
2016-05-05 10:46 | marvintm | Proposed Solution updated | ||||||||||
2016-05-26 15:45 | jorge-garcia | Status | acknowledged => scheduled | |||||||||
2016-05-26 15:45 | jorge-garcia | Assigned To | Retail => jorge-garcia | |||||||||
2016-05-27 08:52 | hgbot | Checkin | ||||||||||
2016-05-27 08:52 | hgbot | Note Added: 0086774 | ||||||||||
2016-05-27 08:53 | hgbot | Status | scheduled => resolved | |||||||||
2016-05-27 08:53 | hgbot | Resolution | open => fixed | |||||||||
2016-05-27 08:53 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0ea26a5471e6b532393b1ecf3efe38b7789d1640 [^] | |||||||||
2016-06-14 11:53 | dmitry_mezentsev | Note Added: 0087243 | ||||||||||
2016-06-15 19:14 | marvintm | Review Assigned To | => marvintm | |||||||||
2016-06-15 19:14 | marvintm | Status | resolved => closed | |||||||||
2022-11-29 13:12 | alostale | Relationship added | related to 0047657 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|