Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035338Retail ModulesStoreServerpublic2017-02-22 12:302017-03-30 16:11
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
 
 
AugustoMauch
No
0035338: Prevent WebPOS from working server which is reloading
When a store server starts it checks if there is any data to reload from the central server so that store and central are on the same latest data from the start.

During this reload phase the WebPOS user should not be able to work with the store server.

In addition during reload all the import entries should be processed before the WebPOS can work.

The idea is to introduce a block-mode for a server. So that if in this mode the WebPOS can not work with the server and a correct message is given.

This block mode (the client side UI) will also be used if the client/server are in different versions.


See Description
See Description
No tags attached.
Issue History
2017-02-22 12:30mtaalNew Issue
2017-02-22 12:30mtaalAssigned To => mtaal
2017-02-22 12:30mtaalTriggers an Emergency Pack => No
2017-03-16 10:55mtaalNote Added: 0095310
2017-03-19 10:41hgbotCheckin
2017-03-19 10:41hgbotNote Added: 0095400
2017-03-19 10:41hgbotStatusnew => resolved
2017-03-19 10:41hgbotResolutionopen => fixed
2017-03-19 10:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3e4097577bfb7c4b9dd5bf5e9b41eeb614535988 [^]
2017-03-19 10:43hgbotCheckin
2017-03-19 10:43hgbotNote Added: 0095401
2017-03-20 10:48mtaalReview Assigned To => AugustoMauch
2017-03-21 12:38AugustoMauchNote Added: 0095467
2017-03-21 12:38AugustoMauchStatusresolved => new
2017-03-21 12:38AugustoMauchResolutionfixed => open
2017-03-22 16:31hgbotCheckin
2017-03-22 16:31hgbotNote Added: 0095511
2017-03-22 16:31hgbotStatusnew => resolved
2017-03-22 16:31hgbotResolutionopen => fixed
2017-03-22 16:31hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3e4097577bfb7c4b9dd5bf5e9b41eeb614535988 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/7e7e2694929e4d7d28de59fde697315ec4fcecd8 [^]
2017-03-30 16:11AugustoMauchNote Added: 0095720
2017-03-30 16:11AugustoMauchStatusresolved => closed

Notes
(0095310)
mtaal   
2017-03-16 10:55   
Documentation:
Main:
http://wiki.openbravo.com/wiki/Retail:Store_Server_Initial_Data_Reload [^]

Links:
http://wiki.openbravo.com/wiki/Retail:Store_Server#Store_Server_Initial_Data_Reload [^]
http://wiki.openbravo.com/wiki/Retail:Configuration_Guide#Mobile_Server_Definition [^]
(0095400)
hgbot   
2017-03-19 10:41   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 3e4097577bfb7c4b9dd5bf5e9b41eeb614535988
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Mar 19 10:40:32 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3e4097577bfb7c4b9dd5bf5e9b41eeb614535988 [^]

Fixes issue 35338: Prevent WebPOS from working server which is reloading
Implement a way to intercept every request to mobile service and prevent it or send back other response

---
M src/org/openbravo/mobile/core/process/MobileService.java
---
(0095401)
hgbot   
2017-03-19 10:43   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 0f988e02c61bdf80fb14033833989fad49744d8b
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Mar 19 10:43:02 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/0f988e02c61bdf80fb14033833989fad49744d8b [^]

Related to issue 35338: Prevent WebPOS from working server which is reloading
Implement/add client side logic to prevent user from working with the server while it is reloading

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/storeserver/synchronization/StoreSynchronizationComponentProvider.java
A web/org.openbravo.retail.storeserver.synchronization/js/serverReloadHandler.js
---
(0095467)
AugustoMauch   
2017-03-21 12:38   
I think something is missing. The MobileServiceRequestAllowedHandler abstract class is defined, but no class extends it.
(0095511)
hgbot   
2017-03-22 16:31   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 7e7e2694929e4d7d28de59fde697315ec4fcecd8
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Mar 22 16:31:43 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/7e7e2694929e4d7d28de59fde697315ec4fcecd8 [^]

Fixes issue 35338: Prevent WebPOS from working server which is reloading
Implementation of the MobileServiceRequestAllowedHandler which checks the reload status

---
A src/org/openbravo/retail/storeserver/synchronization/RetailSynchronizationRequestAllowedHandler.java
---
(0095720)
AugustoMauch   
2017-03-30 16:11   
Code reviewed and verified