Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037077Retail ModulesStoreServerpublic2017-10-16 17:462017-11-07 22:36
Asantos9 
AugustoMauch 
normalmajoralways
closedfixed 
5
 
 
mtaal
No
0037077: [SERQA 3400] Readable clients are not updated in obContext during transition to online
Transition to online process is executed as system administrator. The current client is set before transition to online handlers but readable clients are not updated.
1. Implements a MobileServerTransitionToOnlineHandler
2. Do a query searching any record with a client distinct from '0'


Note that the query does not return the expected record

No tags attached.
Issue History
2017-10-16 17:46Asantos9New Issue
2017-10-16 17:46Asantos9Assigned To => StoreServer
2017-10-16 17:46Asantos9Resolution time => 1509318000
2017-10-16 17:46Asantos9Triggers an Emergency Pack => No
2017-10-23 10:08AugustoMauchFile Added: fixIssue37077.diff
2017-10-24 15:28hgbotCheckin
2017-10-24 15:28hgbotNote Added: 0100029
2017-10-24 15:28hgbotStatusnew => resolved
2017-10-24 15:28hgbotResolutionopen => fixed
2017-10-24 15:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/af8fdd18940ecfff6a30b489e26ae6a52c5833eb [^]
2017-10-24 15:35AugustoMauchAssigned ToStoreServer => AugustoMauch
2017-10-24 15:35AugustoMauchFile Deleted: fixIssue37077.diff
2017-10-24 15:35AugustoMauchReview Assigned To => mtaal
2017-10-24 15:39hgbotCheckin
2017-10-24 15:39hgbotNote Added: 0100031
2017-11-07 22:36mtaalNote Added: 0100314
2017-11-07 22:36mtaalStatusresolved => closed

Notes
(0100029)
hgbot   
2017-10-24 15:28   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: af8fdd18940ecfff6a30b489e26ae6a52c5833eb
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Oct 24 15:16:00 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/af8fdd18940ecfff6a30b489e26ae6a52c5833eb [^]

Fixes issue 37077: Sets proper OBContext before transitioning to online

As part of the transitions to online process, the MobileServerTransitionToOnlineHandlers are verified. They assume that the OBContext of the thread where they are execute use a non-system client and thread. The expected client to be used is the one where the mobile servers are defined.

The simplest way to do this is to pick any non-system role defined for the given client, and initialize the OBContext based on it.

---
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerStatusInformation.java
---
(0100031)
hgbot   
2017-10-24 15:39   
Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: e266334a58cbc17baa0e9488a8c8bffbabbc77ef
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Oct 24 15:27:39 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/e266334a58cbc17baa0e9488a8c8bffbabbc77ef [^]

Related with issue 37077: It is no longer needed to update the OBContext

The OBContext is not properly initialized centrally before starting the transition to online (see [1]).

[1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/af8fdd18940e [^]

---
M src/org/openbravo/replication/symmetricds/SetupSymmetricListener.java
---
(0100314)
mtaal   
2017-11-07 22:36   
reviewed