Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042572Retail ModulesOffline Modepublic2019-12-11 09:292019-12-25 21:27
malsasua 
migueldejuana 
urgentcriticalalways
closedfixed 
5
 
RR19Q3.2RR19Q3.2 
guilleaer
No
0042572: with inestable network, the login offline is not working
when the network is not stable and some requests are responding but other requests are not responding the login offline is not working
1. open console developers tools
2. add a breakpoint in function attemptToLoginOffline
3. switch off the network
4. do login -> code is stopped in breakpoint 2
5. swith on the network
6. continue the execution of code
-> the login offline is done but few seconds later a new popup is displayed:
Online

The connection was restored. However, in the meantime, your session timed out. You must login again now to ensure proper synchronization. Your pending tickets will be saved.
7. login window is displayed again
No tags attached.
blocks defect 0042510 closed migueldejuana with inestable network, the login offline is not working 
Issue History
2019-12-16 15:24marvintmTypedefect => backport
2019-12-16 15:24marvintmTarget Version => RR19Q3.2
2019-12-24 09:24hgbotCheckin
2019-12-24 09:24hgbotNote Added: 0116495
2019-12-24 09:24hgbotCheckin
2019-12-24 09:24hgbotNote Added: 0116496
2019-12-24 09:24hgbotStatusscheduled => resolved
2019-12-24 09:24hgbotResolutionopen => fixed
2019-12-24 09:24hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR19Q3.2/pi-mobile/rev/f5a496d4c4160216af9849444ce23891d71683eb [^]
2019-12-24 11:48hgbotCheckin
2019-12-24 11:48hgbotNote Added: 0116502
2019-12-24 11:48hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR19Q3.2/pi-mobile/rev/f5a496d4c4160216af9849444ce23891d71683eb [^] => http://code.openbravo.com/retail/backports/3.0RR19Q3.2/org.openbravo.mobile.core/rev/4b11af73f636aa947af9aba9e17a6ef253a47dd5 [^]
2019-12-24 11:48hgbotCheckin
2019-12-24 11:48hgbotNote Added: 0116503
2019-12-24 11:48hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR19Q3.2/org.openbravo.mobile.core/rev/4b11af73f636aa947af9aba9e17a6ef253a47dd5 [^] => http://code.openbravo.com/retail/backports/3.0RR19Q4.1/org.openbravo.mobile.core/rev/7586a17af2cbf0dfc54f4a73f401a2ad2b99f935 [^]
2019-12-25 21:27guilleaerReview Assigned To => guilleaer
2019-12-25 21:27guilleaerStatusresolved => closed
2019-12-25 21:27guilleaerFixed in Version => RR19Q3.2

Notes
(0116495)
hgbot   
2019-12-24 09:24   
Repository: retail/backports/3.0RR19Q3.2/org.openbravo.mobile.core
Changeset: de573b81745fc4401e36873c581d216fc156286c
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Dec 24 09:24:10 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q3.2/org.openbravo.mobile.core/rev/de573b81745fc4401e36873c581d216fc156286c [^]

iFixed issue 0042572: with inestable network, the login offline is not working

- Centralize Modal of backend session lost in OB.UI.ModalOnline component
- When backend session is lost:
  * Show a message a bit more clear
  * Add a button to be able to Keep Working
- After pressing Keep Working, show lost session popup only after final reconnect cycle or after fast 5 seconds reconnect

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.mobile.core/source/component/dialog/ob-modalonline.js
M web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0116496)
hgbot   
2019-12-24 09:24   
Repository: retail/backports/3.0RR19Q3.2/pi-mobile
Changeset: f5a496d4c4160216af9849444ce23891d71683eb
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Dec 24 09:07:46 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q3.2/pi-mobile/rev/f5a496d4c4160216af9849444ce23891d71683eb [^]

Fixed issue 0042572: with inestable network, the login offline is not working

- Adapt tests to new popup

---
M src-test/org/openbravo/test/mobile/retail/mobilecore/selenium/TestIdCore.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/terminals/WebPOSTerminalHelper.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineCashmanagement.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineCashmanagementWaitNoForce.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineCashup.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineCreateBP.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineSimplesale.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/VerifyCustomerSearchKeySequenceOffline.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/VerifyOfflineModeNoForce.java
---
(0116502)
hgbot   
2019-12-24 11:48   
Repository: retail/backports/3.0RR19Q3.2/org.openbravo.mobile.core
Changeset: 4b11af73f636aa947af9aba9e17a6ef253a47dd5
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Dec 24 11:48:16 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q3.2/org.openbravo.mobile.core/rev/4b11af73f636aa947af9aba9e17a6ef253a47dd5 [^]

Fixed issue 0042572: with inestable network, the login offline is not working

- Remove unneeded lock

---
M web/org.openbravo.mobile.core/source/component/dialog/ob-modalonline.js
---
(0116503)
hgbot   
2019-12-24 11:48   
Repository: retail/backports/3.0RR19Q4.1/org.openbravo.mobile.core
Changeset: 7586a17af2cbf0dfc54f4a73f401a2ad2b99f935
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Dec 24 11:48:53 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q4.1/org.openbravo.mobile.core/rev/7586a17af2cbf0dfc54f4a73f401a2ad2b99f935 [^]

Fixed issue 0042572: with inestable network, the login offline is not working

- Remove unneeded lock

---
M web/org.openbravo.mobile.core/source/component/dialog/ob-modalonline.js
---