Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037313
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2017-11-16 16:592017-11-21 14:00
ReportermigueldejuanaView Statuspublic 
Assigned Tomigueldejuana 
PriorityurgentResolutionfixedFixed in VersionRR18Q1
StatusclosedFix in branchFixed in SCM revision1d71dae28776
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

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

DescriptionWrong 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.
Steps To Reproduce- 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
Proposed SolutionWe will show Synchronizing popup untill know the that message is processed or not.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to backport 0036988RR17Q4 closedmigueldejuana There are still problems in Synchronized mode when the user refreshes the page (F5) 
depends on backport 0037327RR17Q4 closedmigueldejuana [SynchronizeMode] Wrong behaviour when server/connection goes down while synchronizing a message 

-  Notes
(0100568)
hgbot (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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
---

- Issue History
Date Modified Username Field Change
2017-11-16 16:59 migueldejuana New Issue
2017-11-16 16:59 migueldejuana Assigned To => migueldejuana
2017-11-16 16:59 migueldejuana Triggers an Emergency Pack => No
2017-11-16 16:59 migueldejuana Relationship added related to 0036988
2017-11-17 10:34 hgbot Checkin
2017-11-17 10:34 hgbot Note Added: 0100568
2017-11-17 10:34 hgbot Status new => resolved
2017-11-17 10:34 hgbot Resolution open => fixed
2017-11-17 10:34 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7eb815495d0f9551a6b510ce216ea6f0ca3bd0d2 [^]
2017-11-17 10:34 hgbot Checkin
2017-11-17 10:34 hgbot Note Added: 0100569
2017-11-17 10:34 hgbot Fixed in SCM revision http://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:34 hgbot Checkin
2017-11-17 10:34 hgbot Note Added: 0100570
2017-11-17 10:34 hgbot Fixed in SCM revision http://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:39 hgbot Checkin
2017-11-17 10:39 hgbot Note Added: 0100571
2017-11-17 10:39 hgbot Fixed in SCM revision http://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:33 marvintm Resolution time => 1512169200
2017-11-20 09:31 hgbot Checkin
2017-11-20 09:31 hgbot Note Added: 0100610
2017-11-20 09:31 hgbot Fixed in SCM revision http://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:16 marvintm Review Assigned To => marvintm
2017-11-20 12:16 marvintm Status resolved => closed
2017-11-20 12:16 marvintm Fixed in Version => RR18Q1
2017-11-20 12:39 hgbot Checkin
2017-11-20 12:39 hgbot Note Added: 0100618
2017-11-20 12:39 hgbot Status closed => resolved
2017-11-20 12:39 hgbot Fixed in SCM revision http://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:03 migueldejuana Status resolved => new
2017-11-20 14:03 migueldejuana Resolution fixed => open
2017-11-20 14:03 migueldejuana Fixed in Version RR18Q1 =>
2017-11-20 14:03 migueldejuana Status new => scheduled
2017-11-20 14:03 migueldejuana Status scheduled => resolved
2017-11-20 14:03 migueldejuana Resolution open => fixed
2017-11-21 14:00 marvintm Status resolved => closed
2017-11-21 14:00 marvintm Fixed in Version => RR18Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker