Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027166Retail ModulesWeb POSpublic2014-07-23 14:502014-08-27 11:43
Orekaria 
Orekaria 
normalmajoralways
closedfixed 
5
 
RR14Q4RR14Q4 
mtaal
No
0027166: When the cache has no data for a user, the WebPOS should not try to load the non existent cache
When the cache has no data for a user, the WebPOS should not try to load the non existent cache
1. Login in the WebPOS
2. In OB.DAL.find uncomment the following lines (aka simulate an error):
            var i, collectionType = OB.Collection[model.prototype.modelName + 'List'] || Backbone.Collection,
                collection = new collectionType(),
                len = result.rows.length;
            if (len === 0) {
              success(collection, args);
            } else {
              for (i = 0; i < len; i++) {
                collection.add(OB.Dal.transform(model, result.rows.item(i)));
              }
              success(collection, args);
            }
3. Reload the WebPOS (F5)
4. Verify that the attached screen is shown

or

Clear the cache while loading the WebPOS

or

in ob-terminal-model.js, in the loginUsingCache function, clear the users as is returned by the OB.Dal function
No tags attached.
related to defect 0027187RR14Q4 closed Orekaria The flow to manage data from other sources than the server or the local database, should not raise an exception 
blocks feature request 0027447RR14Q4 closed Orekaria Stabilization: Add a new method to clean the local storage and reload the web page 
png LoginStuck.png (146,897) 2014-08-09 02:13
https://issues.openbravo.com/file_download.php?file_id=7128&type=bug
png
Issue History
2014-07-23 14:50OrekariaNew Issue
2014-07-23 14:50OrekariaAssigned To => Orekaria
2014-07-23 14:50OrekariaTriggers an Emergency Pack => No
2014-07-23 16:46hgbotCheckin
2014-07-23 16:46hgbotNote Added: 0068847
2014-07-23 16:46hgbotStatusnew => resolved
2014-07-23 16:46hgbotResolutionopen => fixed
2014-07-23 16:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/74ae7e2819d0ae154993ca2714b5085ba9430080 [^]
2014-07-24 19:32OrekariaRelationship addedrelated to 0027187
2014-08-01 17:17hgbotCheckin
2014-08-01 17:17hgbotNote Added: 0069038
2014-08-01 17:19hgbotCheckin
2014-08-01 17:19hgbotNote Added: 0069040
2014-08-01 17:20marvintmNote Added: 0069041
2014-08-01 17:20marvintmStatusresolved => new
2014-08-01 17:20marvintmResolutionfixed => open
2014-08-09 02:13OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6254#r6254
2014-08-09 02:13OrekariaFile Added: LoginStuck.png
2014-08-09 02:53hgbotCheckin
2014-08-09 02:53hgbotNote Added: 0069278
2014-08-09 02:53hgbotStatusnew => resolved
2014-08-09 02:53hgbotResolutionopen => fixed
2014-08-09 02:53hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/74ae7e2819d0ae154993ca2714b5085ba9430080 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/bc7874a061e3fbe3cb3aea1fdc1bfb57bcd295e3 [^]
2014-08-10 10:01hgbotCheckin
2014-08-10 10:01hgbotNote Added: 0069283
2014-08-10 10:01hgbotCheckin
2014-08-10 10:01hgbotNote Added: 0069284
2014-08-10 10:01hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/bc7874a061e3fbe3cb3aea1fdc1bfb57bcd295e3 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2b377e861f685aef6353d6acb4793c349217f82d [^]
2014-08-11 13:28OrekariaStatusresolved => new
2014-08-11 13:28OrekariaResolutionfixed => open
2014-08-13 13:19OrekariaStatusnew => scheduled
2014-08-13 13:19Orekariafix_in_branch => pi
2014-08-13 13:20OrekariaStatusscheduled => resolved
2014-08-13 13:20OrekariaResolutionopen => fixed
2014-08-27 10:24OrekariaRelationship addedblocks 0027447
2014-08-27 11:43mtaalReview Assigned To => mtaal
2014-08-27 11:43mtaalNote Added: 0069795
2014-08-27 11:43mtaalStatusresolved => closed
2014-08-27 11:43mtaalFixed in Version => RR14Q4

Notes
(0068847)
hgbot   
2014-07-23 16:46   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 74ae7e2819d0ae154993ca2714b5085ba9430080
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Wed Jul 23 16:45:54 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/74ae7e2819d0ae154993ca2714b5085ba9430080 [^]

Fixes issue 27166: check if the cache contains data before go to cache mode

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0069038)
hgbot   
2014-08-01 17:17   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: aaf263bbf4b57370faf1f3ffa185ee52389a34fe
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Aug 01 17:17:09 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/aaf263bbf4b57370faf1f3ffa185ee52389a34fe [^]

Reverted change for issue 27166 because it was incorrect

---
M src/org/openbravo/mobile/core/process/MobileService.java
M web/org.openbravo.mobile.core/source/data/ob-datasource.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0069040)
hgbot   
2014-08-01 17:19   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 25460d2d894baec52ec084f1d54bb2564075ac54
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Aug 01 17:19:12 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/25460d2d894baec52ec084f1d54bb2564075ac54 [^]

Reverted change for issue 27166 because it was incorrect

---
M src/org/openbravo/mobile/core/process/MobileService.java
M web/org.openbravo.mobile.core/source/data/ob-datasource.js
---
(0069041)
marvintm   
2014-08-01 17:20   
Reverted the fix because it was not correct.
(0069278)
hgbot   
2014-08-09 02:53   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: bc7874a061e3fbe3cb3aea1fdc1bfb57bcd295e3
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sat Aug 09 02:53:08 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/bc7874a061e3fbe3cb3aea1fdc1bfb57bcd295e3 [^]

Fixes issue 27166: if loginUsingCache fails, the non-cache process is performed

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0069283)
hgbot   
2014-08-10 10:01   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: ae0a2318266b8b287372a46850cbde1dfe7e22bb
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Aug 10 09:57:47 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ae0a2318266b8b287372a46850cbde1dfe7e22bb [^]

Reverted change for issue 27166 because there is a better solution

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0069284)
hgbot   
2014-08-10 10:01   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 2b377e861f685aef6353d6acb4793c349217f82d
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Aug 10 10:01:31 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2b377e861f685aef6353d6acb4793c349217f82d [^]

Fixes issue 27166: if the cache is corrupt, reload the page with no cache

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0069795)
mtaal   
2014-08-27 11:43   
Reviewed