Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037313Retail ModulesWeb POSpublic2017-11-16 16:592017-11-21 14:00
migueldejuana 
migueldejuana 
urgentmajoralways
closedfixed 
5
 
RR18Q1 
marvintm
No
0037313: [SynchronizeMode] Wrong behaviour when server/connection goes down while synchronizing a message
Wrong behaviour when server/connection goes down while synchronizing a message.
When server goes down, the process of the message is cut and the Import Entry Archive remains in Initial status forever. When we do relogin in Web POS the Synchronizing popup is shown but the message is not processing so we get stucked.

When connection goes down, the process of the message is still running but we lost connection. When we recover connection in Web POS the Synchronizing popup dissapears and it shouldn't.
- Set Synchronize Mode
- Login
- Put a breakpoint in OrderLoader
- Do a sale
- The flow stops in the breakpoint and we shoul check 2 flows:
   1.1 Loose the connection wait until the offline message is shown
   1.2 Error! The popup dissapears and it should remain there
   
   2.1 Reset the server and relogin popup will be shown
   2.2 Do login again and the Synchronizing popup will be shown but the the message is not being processed and we get stucked
We will show Synchronizing popup untill know the that message is processed or not.
No tags attached.
related to backport 0036988RR17Q4 closed migueldejuana There are still problems in Synchronized mode when the user refreshes the page (F5) 
depends on backport 0037327RR17Q4 closed migueldejuana [SynchronizeMode] Wrong behaviour when server/connection goes down while synchronizing a message 
Issue History
2017-11-16 16:59migueldejuanaNew Issue
2017-11-16 16:59migueldejuanaAssigned To => migueldejuana
2017-11-16 16:59migueldejuanaTriggers an Emergency Pack => No
2017-11-16 16:59migueldejuanaRelationship addedrelated to 0036988
2017-11-17 10:34hgbotCheckin
2017-11-17 10:34hgbotNote Added: 0100568
2017-11-17 10:34hgbotStatusnew => resolved
2017-11-17 10:34hgbotResolutionopen => fixed
2017-11-17 10:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7eb815495d0f9551a6b510ce216ea6f0ca3bd0d2 [^]
2017-11-17 10:34hgbotCheckin
2017-11-17 10:34hgbotNote Added: 0100569
2017-11-17 10:34hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7eb815495d0f9551a6b510ce216ea6f0ca3bd0d2 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/bd3d7089318c4d743e129cfa6678d354835aff8f [^]
2017-11-17 10:34hgbotCheckin
2017-11-17 10:34hgbotNote Added: 0100570
2017-11-17 10:34hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/bd3d7089318c4d743e129cfa6678d354835aff8f [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3b23a21e7f3c62933d9dc4929f226aae99637058 [^]
2017-11-17 10:39hgbotCheckin
2017-11-17 10:39hgbotNote Added: 0100571
2017-11-17 10:39hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3b23a21e7f3c62933d9dc4929f226aae99637058 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/557a388eccd8c9be57cea68bc1d3e75f79d9e531 [^]
2017-11-17 14:33marvintmResolution time => 1512169200
2017-11-20 09:31hgbotCheckin
2017-11-20 09:31hgbotNote Added: 0100610
2017-11-20 09:31hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/557a388eccd8c9be57cea68bc1d3e75f79d9e531 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cfc1811b0d1a008a13445757fb0cbcfefe54301e [^]
2017-11-20 12:16marvintmReview Assigned To => marvintm
2017-11-20 12:16marvintmStatusresolved => closed
2017-11-20 12:16marvintmFixed in Version => RR18Q1
2017-11-20 12:39hgbotCheckin
2017-11-20 12:39hgbotNote Added: 0100618
2017-11-20 12:39hgbotStatusclosed => resolved
2017-11-20 12:39hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cfc1811b0d1a008a13445757fb0cbcfefe54301e [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1d71dae287769e338ccc1d53c7da130feba5a95f [^]
2017-11-20 14:03migueldejuanaStatusresolved => new
2017-11-20 14:03migueldejuanaResolutionfixed => open
2017-11-20 14:03migueldejuanaFixed in VersionRR18Q1 =>
2017-11-20 14:03migueldejuanaStatusnew => scheduled
2017-11-20 14:03migueldejuanaStatusscheduled => resolved
2017-11-20 14:03migueldejuanaResolutionopen => fixed
2017-11-21 14:00marvintmStatusresolved => closed
2017-11-21 14:00marvintmFixed in Version => RR18Q1

Notes
(0100568)
hgbot   
2017-11-17 10:34   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 7eb815495d0f9551a6b510ce216ea6f0ca3bd0d2
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Nov 16 17:04:51 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7eb815495d0f9551a6b510ce216ea6f0ca3bd0d2 [^]

Fixed issue 0037313: [SynchronizeMode] Wrong behaviour when server/connection goes down while synchronizing a message

- Don't retry the retry counter if we are in singleServer, it doesn't make sense
- Don't execute origFail in SynchronizeMode just because all servers are down, we will wait till get a response
- Retry executions if the import is being processed or if the connection/server is down
- If we are processing a message and we reload the page, a runsynchprocess will be launched while another one is still processing and have to execute callbacks. Ensure that we do not start a new syncAllModels till the last one has executed all callbacks

---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0100569)
hgbot   
2017-11-17 10:34   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: bd3d7089318c4d743e129cfa6678d354835aff8f
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Nov 16 17:10:52 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/bd3d7089318c4d743e129cfa6678d354835aff8f [^]

Fixed issue 0037313: [SynchronizeMode] Wrong behaviour when server/connection goes down while synchronizing a message

- Add a listener when the server is up. Sets to Error the Import Entries that where being processing when the server went down

---
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
A src/org/openbravo/mobile/core/listener/SetErrorImportEntryArchiveListener.java
---
(0100570)
hgbot   
2017-11-17 10:34   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3b23a21e7f3c62933d9dc4929f226aae99637058
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Nov 16 17:06:57 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3b23a21e7f3c62933d9dc4929f226aae99637058 [^]

Fixed issue 0037313: [SynchronizeMode] Wrong behaviour when server/connection goes down while synchronizing a message

- Change the way we delete the order to ensure that the order is fully removed (also in the local database)
- If checking request fails, wait until it responds, we need to know the status of the message

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0100571)
hgbot   
2017-11-17 10:39   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 557a388eccd8c9be57cea68bc1d3e75f79d9e531
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Fri Nov 17 10:39:21 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/557a388eccd8c9be57cea68bc1d3e75f79d9e531 [^]

Fixed issue 0037313: [SynchronizeMode] Wrong behaviour when server/connection goes down while synchronizing a message

- Fix comments typos

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0100610)
hgbot   
2017-11-20 09:31   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: cfc1811b0d1a008a13445757fb0cbcfefe54301e
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Nov 20 09:31:14 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cfc1811b0d1a008a13445757fb0cbcfefe54301e [^]

Fixed issue 0037313: [SynchronizeMode] Wrong behaviour when server/connection goes down while synchronizing a message

-Set correctly copyright date and set error message to give more info to the user

---
M src/org/openbravo/mobile/core/listener/SetErrorImportEntryArchiveListener.java
---
(0100618)
hgbot   
2017-11-20 12:39   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1d71dae287769e338ccc1d53c7da130feba5a95f
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Nov 20 12:39:01 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1d71dae287769e338ccc1d53c7da130feba5a95f [^]

Fixed issue 0037313: [SynchronizeMode] Wrong behaviour when server/connection goes down while synchronizing a message

- Add again rebuildCashup because it was done inside deleteOrder function. Now we do not use deleteOrder and we need to do rebuild explicitly

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---