Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046312Retail ModulesWeb POSpublic2021-04-20 08:042021-04-21 10:13
caristu 
caristu 
highminorhave not tried
closedfixed 
5
 
RR21Q2.1RR21Q2 
Packaging and release
2021-03-04
https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/59e0d5edb148d43136aa6c37efcfa57d033828f7 [^]
No
0046312: Context change is not properly checked in some requests
With every backend request, it is checked whether the current context (client, org, user, role) has changed. If changed, a confirmation is shown to the user in order to log in again.

This check is being wrongly skipped in some backend requests.
1) Put a breakpoint here[1]. This is the place where the context check is skipped when it is not possible to get the information.
2) Log in in WebPOS.
3) Note that we are skipping the check in some requests although they contain context information


[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/integration/remote-server/BackendServer.js#L72 [^]
The context info is not being recovered properly in some requests, this is because we are recovering it from the "contextInfo" property of the response object and in some requests it comes inside "response.contextInfo" property instead
No tags attached.
blocks defect 0046302 closed caristu Context change is not properly checked in some requests 
Issue History
2021-04-20 18:07caristuTypedefect => backport
2021-04-20 18:07caristuTarget Version => RR21Q2.1
2021-04-20 18:11hgbotNote Added: 0127401
2021-04-21 10:12alostaleAssigned ToRetail => caristu
2021-04-21 10:13hgbotResolutionopen => fixed
2021-04-21 10:13hgbotStatusscheduled => closed
2021-04-21 10:13hgbotNote Added: 0127407
2021-04-21 10:13hgbotFixed in Version => RR21Q2
2021-04-21 10:13hgbotNote Added: 0127408

Notes
(0127401)
hgbot   
2021-04-20 18:11   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/215 [^]
(0127407)
hgbot   
2021-04-21 10:13   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/215 [^]
(0127408)
hgbot   
2021-04-21 10:13   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 895082891e7c2a289e4cc529a65d22654ce2843c
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 2021-04-20T18:10:20+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/895082891e7c2a289e4cc529a65d22654ce2843c [^]

fixes ISSUE-46312: context is not properly checked in some requests

---
M web/org.openbravo.mobile.core/app/integration/remote-server/BackendServer.js
---