Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030716Retail ModulesWeb POSpublic2015-09-01 12:452015-09-07 16:23
mtaal 
migueldejuana 
normalminorhave not tried
closedfixed 
5
 
RR15Q4RR15Q4 
mtaal
No
0030716: Offline login, should retrieve new authentication token, 401 from server should result in relogin
With the new transport layer in WebPOS the offline re-login should be revisited.

When a user logs in in offline mode then no request is done to the server. The transport layer uses the new concept of an authentication token. This token is null in case of offline login.

When the server which can provide the MobileCoreLoginHandler login service gets back online the user should be forced to re-login to refresh/create the token on the client.
Start Openbravo
Login to WebPOS
Logout
Bring the server down
Login to WebPOS (offline)
Bring the server back
Notice that the requests to the server have authenticationToken/Client parameters with value null.
No tags attached.
Issue History
2015-09-01 12:45mtaalNew Issue
2015-09-01 12:45mtaalAssigned To => migueldejuana
2015-09-01 12:45mtaalTriggers an Emergency Pack => No
2015-09-01 12:45mtaalReview Assigned To => mtaal
2015-09-01 15:49hgbotCheckin
2015-09-01 15:49hgbotNote Added: 0080001
2015-09-01 15:49hgbotStatusnew => resolved
2015-09-01 15:49hgbotResolutionopen => fixed
2015-09-01 15:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8af04c39960f45e27962a456788d90754c0c4955 [^]
2015-09-07 16:23mtaalNote Added: 0080202
2015-09-07 16:23mtaalStatusresolved => closed
2015-09-07 16:23mtaalFixed in Version => RR15Q4

Notes
(0080001)
hgbot   
2015-09-01 15:49   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8af04c39960f45e27962a456788d90754c0c4955
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Sep 01 15:48:26 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8af04c39960f45e27962a456788d90754c0c4955 [^]

Fixed issue 0030716: Offline login, should retrieve new authentication token, 401 from server should result in relogin

---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0080202)
mtaal   
2015-09-07 16:23   
Reviewed and tested