Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026239Openbravo ERPA. Platformpublic2014-04-10 13:252014-05-26 12:46
jecharri 
marvintm 
urgentmajoralways
closedfixed 
5
 
3.0PR14Q33.0PR14Q3 
alostale
Google Chrome
Core
No
0026239: Problems when you login in Web POS and ERP at the same time
Problems when you login in Web POS and ERP at the same time
Use live environment
-Define a role and user to access to ERP but only with access to org "Vall blanca store"
-Define another role and user to access to Web POS but only with access to all org
-Login with first user in the ERP and go to window "sales order"
-Verify that you can only see "Vall blanca store" records
-Go to web POS and login with second user
-Go to ERP and press in openbravo tollbar refresh grid button

You will see that you are able to see sales order from all organizations
After login in the Web POS, we should detect that context has changed and force ERP user to login again.

That is the behaviour that currently Web POS has wehn you have a session in Web POS and someone logged in the ERP using another role.
No tags attached.
Issue History
2014-04-10 13:25jecharriNew Issue
2014-04-10 13:25jecharriAssigned To => AugustoMauch
2014-04-10 13:25jecharriWeb browser => Google Chrome
2014-04-10 13:25jecharriModules => Core
2014-04-10 13:25jecharriResolution time => 1400104800
2014-04-10 13:25jecharriTriggers an Emergency Pack => No
2014-04-10 13:27jecharriWeb browserGoogle Chrome => Google Chrome
2014-04-10 13:27jecharriProposed Solution updated
2014-04-10 16:41jecharriWeb browserGoogle Chrome => Google Chrome
2014-04-10 16:41jecharriSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5685#r5685
2014-05-13 11:20alostaleAssigned ToAugustoMauch => marvintm
2014-05-14 10:53jecharriWeb browserGoogle Chrome => Google Chrome
2014-05-15 18:58marvintmReview Assigned To => alostale
2014-05-15 18:58marvintmWeb browserGoogle Chrome => Google Chrome
2014-05-15 19:01hgbotCheckin
2014-05-15 19:01hgbotNote Added: 0067170
2014-05-15 19:01hgbotStatusnew => resolved
2014-05-15 19:01hgbotResolutionopen => fixed
2014-05-15 19:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8d4702c5719b1c83efd4fc458acb338b85baaaa8 [^]
2014-05-16 09:32hgbotCheckin
2014-05-16 09:32hgbotNote Added: 0067197
2014-05-16 09:32hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8d4702c5719b1c83efd4fc458acb338b85baaaa8 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core.unstablenetworks/rev/8d4702c5719b1c83efd4fc458acb338b85baaaa8 [^]
2014-05-16 10:05hgbotCheckin
2014-05-16 10:05hgbotNote Added: 0067205
2014-05-16 10:06hgbotCheckin
2014-05-16 10:06hgbotNote Added: 0067206
2014-05-16 10:44hgbotCheckin
2014-05-16 10:44hgbotNote Added: 0067209
2014-05-16 10:44hgbotCheckin
2014-05-16 10:44hgbotNote Added: 0067210
2014-05-16 10:44hgbotCheckin
2014-05-16 10:44hgbotNote Added: 0067211
2014-05-16 10:45hgbotCheckin
2014-05-16 10:45hgbotNote Added: 0067212
2014-05-16 17:46hudsonbotCheckin
2014-05-16 17:46hudsonbotNote Added: 0067232
2014-05-19 17:38hudsonbotCheckin
2014-05-19 17:38hudsonbotNote Added: 0067270
2014-05-19 18:59hgbotCheckin
2014-05-19 18:59hgbotNote Added: 0067276
2014-05-20 08:50hgbotCheckin
2014-05-20 08:50hgbotNote Added: 0067289
2014-05-20 17:17hgbotCheckin
2014-05-20 17:17hgbotNote Added: 0067321
2014-05-20 17:17hgbotCheckin
2014-05-20 17:17hgbotNote Added: 0067322
2014-05-26 12:46alostaleNote Added: 0067442
2014-05-26 12:46alostaleStatusresolved => closed
2014-05-26 12:46alostaleFixed in Version => PR14Q3

Notes
(0067170)
hgbot   
2014-05-15 19:01   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8d4702c5719b1c83efd4fc458acb338b85baaaa8
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu May 15 19:01:32 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8d4702c5719b1c83efd4fc458acb338b85baaaa8 [^]

Fixed issue 26239. The mobile.core loginhandler will reject a login attempt if there is already a session for the specified cookie.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0067197)
hgbot   
2014-05-16 09:32   
Repository: erp/pmods/org.openbravo.mobile.core.unstablenetworks
Changeset: 8d4702c5719b1c83efd4fc458acb338b85baaaa8
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu May 15 19:01:32 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core.unstablenetworks/rev/8d4702c5719b1c83efd4fc458acb338b85baaaa8 [^]

Fixed issue 26239. The mobile.core loginhandler will reject a login attempt if there is already a session for the specified cookie.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0067205)
hgbot   
2014-05-16 10:05   
Repository: erp/devel/pi
Changeset: 395765d96a1bdfd8458218dd3cfa12ae89d4bd6a
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri May 16 10:05:06 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/395765d96a1bdfd8458218dd3cfa12ae89d4bd6a [^]

Related to issue 26239. Added an index to improve performance.

---
M src-db/database/model/tables/AD_SESSION.xml
---
(0067206)
hgbot   
2014-05-16 10:06   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a1646266324e14bb08c33b3f91c8cdc0b75ac54c
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri May 16 10:06:11 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a1646266324e14bb08c33b3f91c8cdc0b75ac54c [^]

Related to issue 26239. Added an additional check to ensure that NPEs cannot happen.

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0067209)
hgbot   
2014-05-16 10:44   
Repository: erp/devel/pi
Changeset: dbc986ded642b38f57abd8ec0ecdb4fcf435bff3
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri May 16 10:44:04 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/dbc986ded642b38f57abd8ec0ecdb4fcf435bff3 [^]

Related to issue 26239. Move index to mobile.core.

---
M src-db/database/model/tables/AD_SESSION.xml
---
(0067210)
hgbot   
2014-05-16 10:44   
Repository: erp/pmods/org.openbravo.mobile.core.unstablenetworks
Changeset: a1646266324e14bb08c33b3f91c8cdc0b75ac54c
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri May 16 10:06:11 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core.unstablenetworks/rev/a1646266324e14bb08c33b3f91c8cdc0b75ac54c [^]

Related to issue 26239. Added an additional check to ensure that NPEs cannot happen.

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0067211)
hgbot   
2014-05-16 10:44   
Repository: erp/pmods/org.openbravo.mobile.core.unstablenetworks
Changeset: 5c687d12708737e39d78efe102aba6d7098c696e
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri May 16 10:44:33 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core.unstablenetworks/rev/5c687d12708737e39d78efe102aba6d7098c696e [^]

Related to issue 26239. Move index to mobile.core.

---
A src-db/database/model/modifiedTables/AD_SESSION.xml
---
(0067212)
hgbot   
2014-05-16 10:45   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 5c687d12708737e39d78efe102aba6d7098c696e
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri May 16 10:44:33 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5c687d12708737e39d78efe102aba6d7098c696e [^]

Related to issue 26239. Move index to mobile.core.

---
A src-db/database/model/modifiedTables/AD_SESSION.xml
---
(0067232)
hudsonbot   
2014-05-16 17:46   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c01179ac6783 [^]
Maturity status: Test
(0067270)
hudsonbot   
2014-05-19 17:38   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6303d9b2384d [^]
Maturity status: Test
(0067276)
hgbot   
2014-05-19 18:59   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: d9f4b6f68353860c5d80a523b98ecfb0180fd95b
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon May 19 18:59:03 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d9f4b6f68353860c5d80a523b98ecfb0180fd95b [^]

Related to issue 26239. Improved check of existance of the session. Removed the index as no longer necessary.

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
R src-db/database/model/modifiedTables/AD_SESSION.xml
---
(0067289)
hgbot   
2014-05-20 08:50   
Repository: erp/pmods/org.openbravo.mobile.core.unstablenetworks
Changeset: d9f4b6f68353860c5d80a523b98ecfb0180fd95b
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon May 19 18:59:03 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core.unstablenetworks/rev/d9f4b6f68353860c5d80a523b98ecfb0180fd95b [^]

Related to issue 26239. Improved check of existance of the session. Removed the index as no longer necessary.

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
R src-db/database/model/modifiedTables/AD_SESSION.xml
---
(0067321)
hgbot   
2014-05-20 17:17   
Repository: erp/pmods/org.openbravo.mobile.core.unstablenetworks
Changeset: 4fb7a2e606098e6313d7c4e4fe2a328ef9894f60
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue May 20 17:16:49 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core.unstablenetworks/rev/4fb7a2e606098e6313d7c4e4fe2a328ef9894f60 [^]

Related to issue 26239. Ensure that inactive sessions are not taken into account.

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0067322)
hgbot   
2014-05-20 17:17   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 4fb7a2e606098e6313d7c4e4fe2a328ef9894f60
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue May 20 17:16:49 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/4fb7a2e606098e6313d7c4e4fe2a328ef9894f60 [^]

Related to issue 26239. Ensure that inactive sessions are not taken into account.

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0067442)
alostale   
2014-05-26 12:46   
code reviewed + tested