Openbravo Issue Tracking System - POS2
View Issue Details
0058274POS2POSpublic2025-02-11 17:592025-03-23 22:43
jfvaringot 
meriem_azaf 
highmajoralways
closedfixed 
5
 
25Q125Q1.1 
approved
OBPS
No
0058274: POS 2 - POS is frozen after automatic logout out, when manual action to logout is in progress
REPRODUCED ON 24Q4 and 25Q1 and MASTER

When the automatic logout (timeout) is set, that the user started to manually log out when he is logged out automatically, the POS is frozen at login.
Set an automatic logout on back :
1. Preference 'Web POS Session Timeout' (for example 30s)
2. Preference 'Web POS Session Timeout - Alert Lead Time' (for example 10s)

On POS :
1. log in
2. click on deconnexion
3. do not disconnect and wait for the automatic logout
4. let the POS disconnects the user
5. log in

-> the POS is frozen
Affter having been disconnected, the user can connect again when login again.
No tags attached.
blocks defect 0057951 closed AugustoMauch POS 2 - POS is frozen after automatic logout out, when manual action to logout is in progress 
Issue History
2025-03-18 11:08meriem_azafTypedefect => backport
2025-03-18 11:08meriem_azafTarget Version => 25Q1.1
2025-03-18 11:09meriem_azafAssigned ToAugustoMauch => meriem_azaf
2025-03-18 11:10meriem_azafTarget Version25Q1.1 => 25Q1
2025-03-18 11:32hgbotNote Added: 0176939
2025-03-23 22:43hgbotNote Added: 0177144
2025-03-23 22:43hgbotResolutionopen => fixed
2025-03-23 22:43hgbotStatusscheduled => closed
2025-03-23 22:43hgbotFixed in Version => 25Q1.1
2025-03-23 22:43hgbotNote Added: 0177145

Notes
(0176939)
hgbot   
2025-03-18 11:32   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1828 [^]
(0177144)
hgbot   
2025-03-23 22:43   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1828 [^]
(0177145)
hgbot   
2025-03-23 22:43   
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: e48e55f6b6d8601ee7f4a4aa799399f995997f7b
Author: Augusto Mauch <a.mauch@orisha.com>
Date: 18-03-2025 11:31:13
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/commit/e48e55f6b6d8601ee7f4a4aa799399f995997f7b [^]

Fixes ISSUE-58274: Screen is not locked after automatic logout

The problem was that if the automatic logout took place while a user action was blocked because of a dialog
in a prehook, the user action stack was never cleaned, and when the user logged in again, the application
would think the user action was still in execution, showing the user action scrim and blocking the screen.

Now, when the login screen is rendered for the first time, the user action stack will be reset.

---
M web-jspack/org.openbravo.core2/src/components/AuthProvider/LoginScreen.jsx
M web-jspack/org.openbravo.core2/src/components/AuthProvider/__test__/LoginScreen.test.jsx
M web-jspack/org.openbravo.core2/src/components/AuthProvider/stories/LoginScreen.stories.jsx
---