Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028241Retail ModulesWeb POSpublic2014-11-20 17:252014-11-21 12:12
marvintm 
Orekaria 
normalmajorhave not tried
closedfixed 
5
 
RR14Q4 
marvintm
Production - QA Approved
2014-09-09
RR14Q3.1
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/03b3c1d9a4cc [^]
No
0028241: Context change detection doesn't work anymore
The Web POS checks for the context information (client, organization, role, user) every time a request to the backend is done, and if it detects that the context changed in the session, it forces the user to relogin to avoid the creation of wrong data.

This check doesn't work anymore, due to a recent change in the ob-datasource functionality.
- Log in the web pos.
- Open another tab in the browser, and log in the erp.
- Change the context in the erp (change the organization, for example, or the role).
- Create a ticket in the web pos.

In this case, the Web POS should detect that the context changed and should show a popup. However, this doesn't happen.
The context change should be checked at the beginning of the response processing, instead of doing it only when there is an error.
No tags attached.
related to defect 0028186 new marvintm Stabilization: An improper error is raised when, logged in the ERP, the user navigates to the WebPOS 
depends on defect 0028185RR14Q3.1 closed Orekaria When the backend throws an 'JSONException' the mobile application wrongly performs a logout 
caused by defect 0027554 closed Orekaria When switching from backend to WebPOS first an error is shown and then the login page is shown 
Issue History
2014-11-20 17:25marvintmNew Issue
2014-11-20 17:25marvintmAssigned To => Orekaria
2014-11-20 17:25marvintmRegression level => Production - QA Approved
2014-11-20 17:25marvintmRegression date => 2014-09-09
2014-11-20 17:25marvintmRegression introduced in release => RR14Q3.1
2014-11-20 17:25marvintmRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/03b3c1d9a4cc [^]
2014-11-20 17:25marvintmTriggers an Emergency Pack => No
2014-11-20 17:28OrekariaRelationship addedrelated to 0028185
2014-11-20 17:29OrekariaRelationship addedrelated to 0027554
2014-11-20 17:32OrekariaRelationship addedrelated to 0028186
2014-11-20 17:33OrekariaRelationship replacedhas duplicate 0028185
2014-11-20 17:34OrekariaRelationship replaceddepends on 0028185
2014-11-20 17:35OrekariaRelationship replacedcaused by 0027554
2014-11-21 11:10hgbotCheckin
2014-11-21 11:10hgbotNote Added: 0071875
2014-11-21 11:10hgbotStatusnew => resolved
2014-11-21 11:10hgbotResolutionopen => fixed
2014-11-21 11:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/79729b9512d082aae914c25fce5c96b7cc1087f7 [^]
2014-11-21 12:12marvintmReview Assigned To => marvintm
2014-11-21 12:12marvintmStatusresolved => closed

Notes
(0071875)
hgbot   
2014-11-21 11:10   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 79729b9512d082aae914c25fce5c96b7cc1087f7
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Fri Nov 21 11:09:59 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/79729b9512d082aae914c25fce5c96b7cc1087f7 [^]

Fixes issue 28241: The context change check is done at the beginning of the response port-processing

---
M web/org.openbravo.mobile.core/source/data/ob-datasource.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---