Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040877Retail ModulesStoreServerpublic2019-05-14 19:152019-05-20 18:35
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
 
 
AugustoMauch
No
0040877: When starting a store server check if it is registered, if not then stop it
When starting a store server the system should check that it is registered in the central server.

If not then the store server should not be allowed to start, it should be stopped right away.
create store server
unregister a store in cs
start the store server
it will go offline or start in offline
notice that webpos works on the ss and no data gets synced
Do a webservice call from ss to cs when the ss starts to check if registered. If the ws call fails for other reasons then just ignore it. This check is only assumed to work in case cs is reachable.
No tags attached.
Issue History
2019-05-14 19:15mtaalNew Issue
2019-05-14 19:15mtaalAssigned To => mtaal
2019-05-14 19:15mtaalTriggers an Emergency Pack => No
2019-05-16 11:01mtaalReview Assigned To => AugustoMauch
2019-05-16 11:02hgbotCheckin
2019-05-16 11:02hgbotNote Added: 0111713
2019-05-16 11:02hgbotStatusnew => resolved
2019-05-16 11:02hgbotResolutionopen => fixed
2019-05-16 11:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/c2ac32ae317c6697ae3dd5bb9c4fdbaf407765fb [^]
2019-05-20 18:35AugustoMauchNote Added: 0111937
2019-05-20 18:35AugustoMauchStatusresolved => closed

Notes
(0111713)
hgbot   
2019-05-16 11:02   
Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: c2ac32ae317c6697ae3dd5bb9c4fdbaf407765fb
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu May 16 11:01:58 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/c2ac32ae317c6697ae3dd5bb9c4fdbaf407765fb [^]

Fixes issue 40877: When starting a store server check if it is registered, if not then stop it
Do request to cs to check registered state. Also do not start the ss if there are other
sym-ds exceptions.

---
M src/org/openbravo/replication/symmetricds/SetupSymmetricListener.java
M src/org/openbravo/replication/symmetricds/util/ReplicationUtils.java
A src/org/openbravo/replication/symmetricds/StoreServerRegisteredService.java
---
(0111937)
AugustoMauch   
2019-05-20 18:35   
Code reviewed and verified