Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSmajoralways2016-05-04 17:262022-11-29 13:12
ReportermalsasuaView Statuspublic 
Assigned Tojorge-garcia 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision0ea26a5471e6
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0032863: forbid to open two tabs in the same web browser with POS Terminal

Descriptionif 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 Reproducein web POS:
. open tab1 URL: [^]
. do login

. open a new tab, URL: [^]
. do login
Proposed SolutionThe 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0047657 closedranjith_qualiantech_com Errors when opening two POS tabs/windows on the same computer 

-  Notes
hgbot (developer)
2016-05-27 08:52

Repository: erp/pmods/
Changeset: 0ea26a5471e6b532393b1ecf3efe38b7789d1640
Author: Jorge Garcia <jorge.garcia <at>>
Date: Thu May 26 17:28:58 2016 +0200
URL: [^]

Fixed issue 32863: forbid to open two tabs in the same web browser with
POS Terminal

The solution has been applied for all the aplication:
* WebPOS
* Mobile Procurement
* Mobile Warehouse

Now, only the last aplication loaded will be unlocked to work.

M src-db/database/sourcedata/AD_MESSAGE.xml
M web/
dmitry_mezentsev (developer)
2016-06-14 11:53

Not closed for 18 days!

- 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 => [^]
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

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker