Notes |
|
(0095647)
|
mtaal
|
2017-03-29 14:25
|
|
Tested this by forcing the code in MultiServerJSONProcess to go into the first if and then throwing an exception:
if (true || executeOnlyInCentral(jsonSent)) {
final JSONObject jsonToCentral = new JSONObject(jsonSent.toString());
// sent along from the store to central, set the source to STORE
jsonToCentral.put(SOURCE_PROP, SOURCE_STORE);
// prevent cycling around
jsonToCentral.remove(CALL_ONLY_CENTRAL_PROP);
JSONObject centralResult = null;
try {
centralResult = MobileServerRequestExecutor.getInstance().executeCentralRequest(
MobileServerUtils.OBWSPATH + this.getClass().getName(), jsonToCentral);
if (true) {
throw new Exception("TEST");
}
} catch (Throwable t) {
log.error(t.getMessage(), t); |
|
|
(0095648)
|
hgbot
|
2017-03-29 14:27
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 012e6b7ab09cfdfc418a351f098d40560a1ac59f
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Mar 29 14:26:56 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/012e6b7ab09cfdfc418a351f098d40560a1ac59f [^]
Fixes issue 35601: Transition to offline is not triggered at every location in the MultiServerJSONProcess code
In case of only central request then use the same transition to offline code and returning error as in other places in this class.
---
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
|
|
|
(0095708)
|
AugustoMauch
|
2017-03-30 13:29
(edited on: 2017-03-30 16:45) |
|
|
|
(0095760)
|
mtaal
|
2017-03-31 12:27
|
|
As only code needs to copied in a separate method the choice is made to do this in a new issue in the Q3 release. |
|
|
(0095762)
|
mtaal
|
2017-03-31 12:28
|
|
Remaining changes will be done in related issue |
|
|
|
Code reviewed and verified |
|