Openbravo Issue Tracking System - Retail Modules
View Issue Details
0021163Retail ModulesWeb POSpublic2012-07-20 04:302012-12-21 09:27
xplacesc 
marvintm 
highmajorsometimes
closedfixed 
5
 
RMP18 
No
0021163: Login in the BO or the Web POS with a wrong User
Sometimes when you are logged in the POS or the BO and you want to log to the other with another user, it shows a weird behavior.
1) Log-out of POS and BO
2) Log-in in Web POS as vallblanca
3) Use the Openbravo user in the BO

Although you have introduced the Openbravo user, system logs in with the vallblanca user.

If instead of this order, you follow the opposite, nothing happens, and login on each side is ok, even if you log-out from the BO and log-in again
security
related to defect 0022191RMP18 closed marvintm Error if backend organization/warehouse are different from webpos user organization/warehouse 
Issue History
2012-07-20 04:30xplacescNew Issue
2012-07-20 04:30xplacescAssigned To => adrianromero
2012-11-09 14:56alostaleRelationship addedrelated to 0022191
2012-11-09 14:56alostaleTag Attached: security
2012-11-09 14:57alostaleStatusnew => scheduled
2012-11-09 14:57alostaleAssigned Toadrianromero => marvintm
2012-11-09 14:57alostalefix_in_branch => pi
2012-12-20 19:19marvintmNote Added: 0055140
2012-12-20 19:19hgbotCheckin
2012-12-20 19:19hgbotNote Added: 0055141
2012-12-20 19:19hgbotStatusscheduled => resolved
2012-12-20 19:19hgbotResolutionopen => fixed
2012-12-20 19:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/727db9a7007dfaa9f3987c405af2dabad3d0c559 [^]
2012-12-21 09:27guilleaerNote Added: 0055145
2012-12-21 09:27guilleaerStatusresolved => closed
2012-12-21 09:27guilleaerFixed in Version => RMP18

Notes
(0055140)
marvintm   
2012-12-20 19:19   
The Web POS and the ERP share the same session. This means that whenever the organization or role is changed in the ERP, the changes will affect the Web POS.

We cannot change this. However, we can detect the problem and warn the user. After the change we've done, an alert will be shown to the user with the instructions he must follow (basically, he just needs to enter his credentials again).
(0055141)
hgbot   
2012-12-20 19:19   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 727db9a7007dfaa9f3987c405af2dabad3d0c559
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Dec 20 19:17:44 2012 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/727db9a7007dfaa9f3987c405af2dabad3d0c559 [^]

Fixed issue 21163. An alert will be shown in case the context was changed.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/posterminal/OBPOSComponentProvider.java
M src/org/openbravo/retail/posterminal/SimpleQueryBuilder.java
M src/org/openbravo/retail/posterminal/term/Context.java
M web/org.openbravo.retail.posterminal/js/utilities.js
A web/org.openbravo.retail.posterminal/js/components/modalcontextchanged.js
---
(0055145)
guilleaer   
2012-12-21 09:27   
tested & verified