Openbravo Issue Tracking System - POS2
View Issue Details
0057755POS2Corepublic2025-01-24 12:552025-03-20 13:56
aaroncalero 
Triage Platform Base 
highcriticalalways
closedfixed 
5
 
25Q2 
approved
Gold
No
0057755: 'Application Locked' popup can be bypassed before the first login is done
Core2-based applications have a mechanism to block the page if the code detects that the same url has been opened in a different tab[1]. When that situation is detected, a popup is opened, blocking the screen and preventing further action in that tab.

That popup can fail to be opened if current tab is on the login screen, and no login has been performed yet: a js error is raised while trying to get the label to be displayed in the popup:
hook.js:608 Uncaught TypeError: Cannot read properties of undefined (reading 'language_string');



[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/web-jspack/org.openbravo.core2/src/core/user-interface/BrowserTab.js?ref_type=heads [^]
In a POS2 environment:
Copy the url of the application and close all POS tabs.
Open the first tab with the copied url and open the chrome console.
Open the second tab with the copied url.
Verify that the first tab now shows an error in the console.
Verify that it is now possible to log in from both tabs
No tags attached.
depends on backport 005797425Q1 closed AugustoMauch 'Application Locked' popup can be bypassed before the first login is done 
depends on backport 005797524Q4.1 closed Triage Platform Base 'Application Locked' popup can be bypassed before the first login is done 
Issue History
2025-01-24 12:55aaroncaleroNew Issue
2025-01-24 12:55aaroncaleroAssigned To => Triage Platform Base
2025-01-24 12:55aaroncaleroOBNetwork customer => No
2025-01-24 12:55aaroncaleroTriggers an Emergency Pack => No
2025-02-06 12:11alostaleOBNetwork customerNo => Gold
2025-02-13 10:32AugustoMauchStatusnew => scheduled
2025-02-13 18:13hgbotMerge Request Status => open
2025-02-13 18:13hgbotNote Added: 0175618
2025-02-24 17:03hgbotMerge Request Statusopen => approved
2025-02-25 09:04hgbotResolutionopen => fixed
2025-02-25 09:04hgbotStatusscheduled => closed
2025-02-25 09:04hgbotFixed in Version => 25Q2
2025-02-25 09:04hgbotNote Added: 0176095
2025-02-25 09:04hgbotNote Added: 0176096
2025-03-20 13:56marvintmSeveritymajor => critical

Notes
(0175618)
hgbot   
2025-02-13 18:13   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1768 [^]
(0176095)
hgbot   
2025-02-25 09:04   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 02479d7e4afd98c3a0fa0689006a464b092e12bd
Author: Augusto Mauch <amauch@orisha.com>
Date: 25-02-2025 09:03:55
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/commit/02479d7e4afd98c3a0fa0689006a464b092e12bd [^]

Fixes ISSUE-57755: Merge branch 'fix/57755-duplicate-tab-on-login'

---
M web-jspack/org.openbravo.core2/src/components/ConfirmationDialog/ConfirmationDialog.jsx
M web-jspack/org.openbravo.core2/src/core/user-interface/BrowserTab.js
M web-jspack/org.openbravo.core2/src/core/user-interface/View.js
M web-jspack/org.openbravo.core2/src/ob-init.js
---
(0176096)
hgbot   
2025-02-25 09:04   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1768 [^]