Openbravo Issue Tracking System - POS2
View Issue Details
0049451POS2Restaurantspublic2022-05-31 15:472022-10-25 12:21
Felixaka 
meriem_azaf 
normalminorrandom
closedfixed 
5
 
23Q1 
No
0049451: JIRA 2986 - Login screen - Losing information restaurant and the tills need
In Fs environement,

Sometime, when we are disconected from the POS because of the Timeout or for some other reason, it can appears that we lost the infomation about the name of the restautant and the tills that we are using. (See picture)

It happen randomly
1- Go on the POS

2- Login

3- Refresh browser(F5)

4- Log out

No tags attached.
png 2022-05-31_15h45_52.png (19,647) 2022-05-31 15:47
https://issues.openbravo.com/file_download.php?file_id=17095&type=bug
png

png 2022-05-31_15h46_31.png (24,969) 2022-05-31 15:47
https://issues.openbravo.com/file_download.php?file_id=17096&type=bug
png
Issue History
2022-05-31 15:47FelixakaNew Issue
2022-05-31 15:47FelixakaAssigned To => Retail
2022-05-31 15:47FelixakaFile Added: 2022-05-31_15h45_52.png
2022-05-31 15:47FelixakaTriggers an Emergency Pack => No
2022-05-31 15:47FelixakaFile Added: 2022-05-31_15h46_31.png
2022-05-31 15:48FelixakaDescription Updatedbug_revision_view_page.php?rev_id=24201#r24201
2022-09-23 18:42guilleaerNote Added: 0141331
2022-09-23 18:42guilleaerStatusnew => feedback
2022-09-30 08:32guilleaerStatusfeedback => new
2022-09-30 08:32guilleaerNote Added: 0141534
2022-10-10 11:49meriem_azafAssigned ToRetail => meriem_azaf
2022-10-12 09:28hgbotNote Added: 0141987
2022-10-13 15:26meriem_azafStatusnew => scheduled
2022-10-17 10:39meriem_azafSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24905#r24905
2022-10-25 12:21hgbotResolutionopen => fixed
2022-10-25 12:21hgbotStatusscheduled => closed
2022-10-25 12:21hgbotFixed in Version => 23Q1
2022-10-25 12:21hgbotNote Added: 0142548
2022-10-25 12:21hgbotNote Added: 0142549

Notes
(0141331)
guilleaer   
2022-09-23 18:42   
Unable to reproduce
(0141534)
guilleaer   
2022-09-30 08:32   
It seems that happened again. They explain that happens when session finishes.
To be checked
(0141987)
hgbot   
2022-10-12 09:28   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1270 [^]
(0142548)
hgbot   
2022-10-25 12:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 33fc2d9580c71ba803b7b2e876b9c86d58bc8496
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 25-10-2022 10:53:59
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/33fc2d9580c71ba803b7b2e876b9c86d58bc8496 [^]

Fixes ISSUE-49451: Login screen - Losing information restaurant and the tills need

when we are disconnected from the POS because of the Timeout or for some other reason, it can appears that we lost the infomation about the name of the restautant and the tills that we are using.

The problem was that when the session is not active so we enter to the first condition but the app is not empty so that why we lose the informations about the restaurant and the terminal.

To fix this, we combine the two condition when the session is not active and the app is empty it will throw an exception.

---
M src/org/openbravo/pos2/login/POS2LoginUtilsServlet.java
---
(0142549)
hgbot   
2022-10-25 12:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1270 [^]