Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035667Retail ModulesStoreServerpublic2017-03-31 12:292017-04-10 06:12
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR17Q3 
mtaal
No
0035667: Move duplicate code together in one method in MultiServerJSONProcess
The code that handlers the flow when there is an exception here [1] and here [2] is duplicated. It would be better if this code is extracted to a function.

Also, this line [3] states that the transition to offline will only be done if the node is not transitioning. But the transition to offline should be done if the node is transitioning to online, right?

[1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/012e6b7ab09c/src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java#l361 [^]
[2] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/012e6b7ab09c/src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java#l418 [^]
[3] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/012e6b7ab09c/src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java#l432 [^]

See Descroption
See Description
No tags attached.
related to defect 0035601RR17Q2 closed mtaal Transition to offline is not triggered at every location in the MultiServerJSONProcess code 
Issue History
2017-03-31 12:29mtaalNew Issue
2017-03-31 12:29mtaalAssigned To => mtaal
2017-03-31 12:29mtaalTriggers an Emergency Pack => No
2017-03-31 12:29mtaalRelationship addedrelated to 0035601
2017-04-10 06:11mtaalStatusnew => scheduled
2017-04-10 06:12mtaalNote Added: 0095925
2017-04-10 06:12mtaalStatusscheduled => resolved
2017-04-10 06:12mtaalResolutionopen => fixed
2017-04-10 06:12mtaalReview Assigned To => mtaal
2017-04-10 06:12mtaalNote Added: 0095926
2017-04-10 06:12mtaalStatusresolved => closed

Notes
(0095925)
mtaal   
2017-04-10 06:12   
Resolved in this commit:
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0769bc9065a6f0825bc776b8a94915f59775b34c#l1.130 [^]
(0095926)
mtaal   
2017-04-10 06:12   
Code change will be reviewed in issue in which the commit happened