Openbravo Issue Tracking System - Retail Modules | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0029342 | Retail Modules | Web POS | public | 2015-03-18 18:50 | 2015-03-27 17:18 | |||||||||||||||||||||
Reporter | Orekaria | |||||||||||||||||||||||||
Assigned To | Orekaria | |||||||||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 5 | OS Version | |||||||||||||||||||||||
Product Version | ||||||||||||||||||||||||||
Target Version | Fixed in Version | RR15Q2 | ||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | marvintm | |||||||||||||||||||||||||
OBNetwork customer | ||||||||||||||||||||||||||
Support ticket | ||||||||||||||||||||||||||
Regression level | ||||||||||||||||||||||||||
Regression date | ||||||||||||||||||||||||||
Regression introduced in release | ||||||||||||||||||||||||||
Regression introduced by commit | ||||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0029342: Stabilization: The 'cacheAvailableForUser' localStorage value is not reset when the cache is missing the terminal data | |||||||||||||||||||||||||
Description | Stabilization: The 'cacheAvailableForUser' localStorage value is not reset when the cache is missing the terminal data | |||||||||||||||||||||||||
Steps To Reproduce | Log in the WebPOS Logout Set a breakpoint in this line of 'ob-terminal-model.js': if (me.isUserCacheAvailable() && window.localStorage.getItem('cacheAvailableForUser:' + OB.MobileApp.model.user) && window.localStorage.getItem('loggedTerminalName') && (window.localStorage.getItem('loggedTerminalName') === OB.MobileApp.model.get('terminalName'))) { Log in When the flow stops, Verify that the above condition is true (CORRECT) Now, Execute this command window.localStorage.setItem('cacheAvailableForUser:' + OB.MobileApp.model.user, false); Verify that the above condition is true (INCORRECT) The reason is that the false value is inserted as "false" and the condition is true 2) Log in with Vallblanca Set a breakpoint in 'ob-profile.js' in the line of this code: window.localStorage.removeItem('cacheAvailableForUser:' + OB.MobileApp.model.get('context').user.name); Verify that the content of OB.MobileApp.model.user is 'vallblanca' (CORRECT) Verify that the content of OB.MobileApp.model.get('context').user.name is not 'vallblanca' (INCORRECT) | |||||||||||||||||||||||||
Proposed Solution | ||||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | RR15Q1.core.patch (1,297) 2015-03-19 12:18 https://issues.openbravo.com/file_download.php?file_id=7903&type=bug | |||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2015-03-18 18:50 | Orekaria | New Issue | ||||||||||||||||||||||||
2015-03-18 18:50 | Orekaria | Assigned To | => Retail | |||||||||||||||||||||||
2015-03-18 18:50 | Orekaria | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
2015-03-18 18:51 | Orekaria | Assigned To | Retail => Orekaria | |||||||||||||||||||||||
2015-03-18 18:51 | Orekaria | Relationship added | depends on 0028933 | |||||||||||||||||||||||
2015-03-18 18:53 | Orekaria | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=8030#r8030 | |||||||||||||||||||||||
2015-03-18 18:53 | Orekaria | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=8031#r8031 | |||||||||||||||||||||||
2015-03-18 19:29 | Orekaria | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=8032#r8032 | |||||||||||||||||||||||
2015-03-18 19:29 | Orekaria | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=8033#r8033 | |||||||||||||||||||||||
2015-03-18 19:52 | Orekaria | Summary | Stabilization: The 'cacheAvailableForUser' localStorage value is inconsistent in its use => Stabilization: The 'cacheAvailableForUser' localStorage value is not reset when the cache is missing data | |||||||||||||||||||||||
2015-03-18 19:52 | Orekaria | Description Updated | bug_revision_view_page.php?rev_id=8035#r8035 | |||||||||||||||||||||||
2015-03-18 20:11 | Orekaria | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=8036#r8036 | |||||||||||||||||||||||
2015-03-18 20:23 | hgbot | Checkin | ||||||||||||||||||||||||
2015-03-18 20:23 | hgbot | Note Added: 0075759 | ||||||||||||||||||||||||
2015-03-18 20:23 | hgbot | Status | new => resolved | |||||||||||||||||||||||
2015-03-18 20:23 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
2015-03-18 20:23 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/4e33cba722dfae09f5fcc4f0085a425afa2e1861 [^] | |||||||||||||||||||||||
2015-03-18 21:12 | hgbot | Checkin | ||||||||||||||||||||||||
2015-03-18 21:12 | hgbot | Note Added: 0075760 | ||||||||||||||||||||||||
2015-03-18 21:12 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/4e33cba722dfae09f5fcc4f0085a425afa2e1861 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ff50f93c2d838cea1145c7c4b669548acd25d713 [^] | |||||||||||||||||||||||
2015-03-18 21:24 | hgbot | Checkin | ||||||||||||||||||||||||
2015-03-18 21:24 | hgbot | Note Added: 0075761 | ||||||||||||||||||||||||
2015-03-18 21:24 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ff50f93c2d838cea1145c7c4b669548acd25d713 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/316c5ea2233bbf0580a95f2cbe33ad9e951d170d [^] | |||||||||||||||||||||||
2015-03-19 07:37 | Orekaria | Status | resolved => new | |||||||||||||||||||||||
2015-03-19 07:37 | Orekaria | Resolution | fixed => open | |||||||||||||||||||||||
2015-03-19 07:37 | Orekaria | Status | new => scheduled | |||||||||||||||||||||||
2015-03-19 07:38 | Orekaria | Status | scheduled => resolved | |||||||||||||||||||||||
2015-03-19 07:38 | Orekaria | Fixed in Version | => RR15Q2 | |||||||||||||||||||||||
2015-03-19 07:38 | Orekaria | Resolution | open => fixed | |||||||||||||||||||||||
2015-03-19 08:25 | Orekaria | Summary | Stabilization: The 'cacheAvailableForUser' localStorage value is not reset when the cache is missing data => Stabilization: The 'cacheAvailableForUser' localStorage value is not reset when the cache is missing the terminal data | |||||||||||||||||||||||
2015-03-19 08:25 | Orekaria | Description Updated | bug_revision_view_page.php?rev_id=8037#r8037 | |||||||||||||||||||||||
2015-03-19 12:18 | Orekaria | File Added: RR15Q1.core.patch | ||||||||||||||||||||||||
2015-03-19 12:21 | Orekaria | Note Edited: 0075761 | bug_revision_view_page.php?bugnote_id=0075761#r8041 | |||||||||||||||||||||||
2015-03-19 21:15 | Orekaria | Relationship added | blocks 0029352 | |||||||||||||||||||||||
2015-03-23 14:54 | Orekaria | Relationship added | blocks 0029377 | |||||||||||||||||||||||
2015-03-27 17:18 | marvintm | Review Assigned To | => marvintm | |||||||||||||||||||||||
2015-03-27 17:18 | marvintm | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|