Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040320Retail ModulesStoreServerpublic2019-03-05 16:002019-03-06 11:56
AugustoMauch 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
 
 
mtaal
No
0040320: MobileServerStatusInformation should not update ping and transition state in central server
The MobileServerStatusInformation servlet is invoked:
- When the central server pings the store servers to retrieve its status
- When the store server suspects the central server is offline, to confirm whether it is available

That servlet returns the state of the server (makes sense for both invokations) but it also updates the last CS ping and tries to transition to online, that only makes sense is the server where it is executed is a store server.
Reported because the log in a store server client showed that the following query was executed in a central server:

update OBMOBC_SERVER_DEFINITION set Last_Ping=now() where servertype='MAIN'
No tags attached.
Issue History
2019-03-05 16:00AugustoMauchNew Issue
2019-03-05 16:00AugustoMauchAssigned To => AugustoMauch
2019-03-05 16:00AugustoMauchTriggers an Emergency Pack => No
2019-03-05 16:02hgbotCheckin
2019-03-05 16:02hgbotNote Added: 0110233
2019-03-05 16:02hgbotStatusnew => resolved
2019-03-05 16:02hgbotResolutionopen => fixed
2019-03-05 16:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c189807df1c7f4f8198342fa2dfc70654cb54b8b [^]
2019-03-05 16:02AugustoMauchReview Assigned To => mtaal
2019-03-06 11:56mtaalNote Added: 0110251
2019-03-06 11:56mtaalStatusresolved => closed

Notes
(0110233)
hgbot   
2019-03-05 16:02   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: c189807df1c7f4f8198342fa2dfc70654cb54b8b
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Mar 05 16:01:54 2019 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c189807df1c7f4f8198342fa2dfc70654cb54b8b [^]

Fixes issue 40320: Only update last ping and transition in store servers

Part of the actions the MobileServerStatusInformation servlet does only make sense when
executed on a store server.

---
M src/org/openbravo/mobile/core/servercontroller/MobileServerStatusInformation.java
---
(0110251)
mtaal   
2019-03-06 11:56   
reviewed and tested