Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031242Retail ModulesWeb POSpublic2015-10-25 21:132015-11-23 16:26
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
 
RR16Q1RR16Q1 
migueldejuana
No
0031242: Multiple server: store server drops, (offline) login does not work
Testing the following setup:
work with 2 servers: central and store server, each with their own host name (set in the /etc/hosts file)
- setup these servers in eclipse as 2 servers (each with their own port)
- define the servers in Mobile Server definition

Start both servers, login into webpos.

Stop the store server instance, logout and login into webpos.

--> login does not work.

Other issues:
- extra HttpSessions are created for OPTIONS calls
- after logging in, in offline mode, the systems logs out automatically
- some requests are done to the KernelServlet, the KernelServlet also needs to support the CORS headers and the DOOPTIONS call
- also support logout in a correct way, change the BroadCast concept to Transaction and add Broadcast concept which broadcasts a request to all servers but does not store a message
See above.
No tags attached.
related to feature request 0030319RR16Q1 closed migueldejuana Implement Store Server Offline Controller 
Issue History
2015-10-25 21:13mtaalNew Issue
2015-10-25 21:13mtaalAssigned To => mtaal
2015-10-25 21:13mtaalTriggers an Emergency Pack => No
2015-10-25 21:15mtaalDescription Updatedbug_revision_view_page.php?rev_id=9849#r9849
2015-10-26 00:55hgbotCheckin
2015-10-26 00:55hgbotNote Added: 0081287
2015-10-26 00:56hgbotCheckin
2015-10-26 00:56hgbotNote Added: 0081288
2015-10-26 09:15hgbotCheckin
2015-10-26 09:15hgbotNote Added: 0081290
2015-11-19 11:36mtaalStatusnew => scheduled
2015-11-19 11:36mtaalNote Added: 0081976
2015-11-19 11:36mtaalReview Assigned To => migueldejuana
2015-11-19 11:36mtaalNote Added: 0081977
2015-11-19 11:36mtaalStatusscheduled => resolved
2015-11-19 11:36mtaalFixed in Version => RR16Q1
2015-11-19 11:36mtaalResolutionopen => fixed
2015-11-19 11:41mtaalRelationship addedrelated to 0030319
2015-11-23 16:26migueldejuanaNote Added: 0082101
2015-11-23 16:26migueldejuanaStatusresolved => closed

Notes
(0081287)
hgbot   
2015-10-26 00:55   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1b312bb050384c71437a14e7856c33cb31a4be81
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Oct 25 21:25:24 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1b312bb050384c71437a14e7856c33cb31a4be81 [^]

Related to issue 31242: Multiple server: store server drops, (offline) login does not work
Set Transaction services and Broadcast service

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
---
(0081288)
hgbot   
2015-10-26 00:56   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 45a9b7925652780ffd6fb0afdc82ed2a5fe9a49e
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Oct 25 21:24:47 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/45a9b7925652780ffd6fb0afdc82ed2a5fe9a49e [^]

Related to issue 31242: Multiple server: store server drops, (offline) login does not work
Set cors headers centrally, prevent session creation on DOOPTIONS calls

---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/mobile/core/MobileCoreComponentServlet.java
M src/org/openbravo/mobile/core/authenticate/MobileKeyAuthenticationManager.java
M src/org/openbravo/mobile/core/login/Context.java
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
M src/org/openbravo/mobile/core/login/MobileSessionActive.java
M src/org/openbravo/mobile/core/process/WebServiceAbstractServlet.java
M src/org/openbravo/mobile/core/process/WebServiceAuthenticatedServlet.java
M src/org/openbravo/mobile/core/utils/OBMOBCUtils.java
M web/org.openbravo.mobile.core/source/component/ob-login.js
M web/org.openbravo.mobile.core/source/component/obpos-approval.js
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0081290)
hgbot   
2015-10-26 09:15   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 634e05a35bca6c54fcfc50612795f8388d4c8c8c
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Oct 26 09:15:05 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/634e05a35bca6c54fcfc50612795f8388d4c8c8c [^]

Related to issue 31242: Multiple server: store server drops, (offline) login does not work
Removed unneeded System.err.println calls

---
M src/org/openbravo/mobile/core/authenticate/MobileKeyAuthenticationManager.java
M src/org/openbravo/mobile/core/login/Context.java
---
(0081976)
mtaal   
2015-11-19 11:36   
is resolved
(0081977)
mtaal   
2015-11-19 11:36   
commits solve the issue
(0082101)
migueldejuana   
2015-11-23 16:26   
Tested and reviewed in 4881004e9775