Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040710Retail ModulesOffline Modepublic2019-04-30 10:182019-07-16 16:28
plujan 
javierRodriguez 
normalmajorhave not tried
closedfixed 
5
main 
RR19Q3 
marvintm
Packaging and release
main
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/16b6f23b53eb [^]
No
0040710: [19Q2] Offline log out shows an error and does not return to login page
With Tomcat service stopped, it is not possible to log in after logging out. See steps.
1. Use a properly configured server and login using the webPOS
2. Check you are logged in online as expected.
3. In the server, stop tomcat service.
4. In the terminal create a ticket, check you are taken offline as expected.
5. Log out, the login window is not shown and a blank page (with a console error) is shown. See attached image.
No tags attached.
related to defect 0041122 closed migueldejuana the login in offline mode fails when the tomcat is retarted and the postgres is down 
depends on backport 0040789RR19Q2 closed javierRodriguez [19Q2] Offline log out shows an error and does not return to login page 
has duplicate defect 0040760 closed Retail When the Postgres connection fail when the Tomcat is Starting the Offline mode cant reconnect 
png LogoutOffline.png (67,298) 2019-04-30 10:18
https://issues.openbravo.com/file_download.php?file_id=12899&type=bug
png
Issue History
2019-04-30 10:18plujanNew Issue
2019-04-30 10:18plujanAssigned To => Retail
2019-04-30 10:18plujanFile Added: LogoutOffline.png
2019-04-30 10:18plujanTriggers an Emergency Pack => No
2019-05-01 17:30marvintmReview Assigned To => marvintm
2019-05-01 17:30marvintmRelationship addedduplicate of 0040725
2019-05-01 17:30marvintmStatusnew => closed
2019-05-01 17:30marvintmResolutionopen => duplicate
2019-05-01 17:30marvintmFixed in Version => RR19Q3
2019-05-01 17:34marvintmStatusclosed => new
2019-05-01 17:34marvintmResolutionduplicate => open
2019-05-01 17:34marvintmFixed in VersionRR19Q3 =>
2019-05-01 17:34marvintmRelationship deleted0040725
2019-05-06 14:53javierRodriguezAssigned ToRetail => javierRodriguez
2019-05-06 14:58javierRodriguezRegression level => Packaging and release
2019-05-06 14:58javierRodriguezRegression introduced in release => main
2019-05-06 14:58javierRodriguezRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/16b6f23b53eb [^]
2019-05-06 15:04javierRodriguezNote Added: 0111500
2019-05-06 15:24javierRodriguezStatusnew => scheduled
2019-05-07 10:46hgbotCheckin
2019-05-07 10:46hgbotNote Added: 0111527
2019-05-07 10:46hgbotStatusscheduled => resolved
2019-05-07 10:46hgbotResolutionopen => fixed
2019-05-07 10:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1100a0898d9cf0ca6f1ce5928d7365906eb5b9aa [^]
2019-05-09 09:31marvintmStatusresolved => closed
2019-05-09 09:31marvintmFixed in Version => RR19Q2
2019-05-09 09:31marvintmFixed in VersionRR19Q2 => RR19Q3
2019-05-13 18:09marvintmRelationship addedhas duplicate 0040760
2019-07-16 16:28ngarciaRelationship addedrelated to 0041122

Notes
(0111500)
javierRodriguez   
2019-05-06 15:04   
The commit which introduce this regression solve successfully its own issue, but expose this bug. In any case, that commit must not be reverted.
(0111527)
hgbot   
2019-05-07 10:46   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 1100a0898d9cf0ca6f1ce5928d7365906eb5b9aa
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Mon May 06 15:28:28 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1100a0898d9cf0ca6f1ce5928d7365906eb5b9aa [^]

Fixed issue 40710: Offline log out shows an error and does not return to login page

Force the promise to be rejected and go to catch statement

---
M web/org.openbravo.mobile.core/source/offline/ob-fetch-manifest.js
---