Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013683Openbravo ERPA. Platformpublic2010-06-17 13:162022-02-01 08:08
iperdomo 
Triage Platform Base 
highminorhave not tried
acknowledgedopen 
202.6.30-gentoo-r5
pi 
 
Core
No
0013683: Review/Fix LoginUtils.fillSessionArguments function
The fillSessionArguments executed in 2 cases:
* In the login process just after validating the username/password
* Using the change role window, where you can change the user's role, client, organization, etc

This function returns false when something went wrong trying to complete one of the steps in the process, changing a OBContext or setting one of the required session values.

In the login process when fillSessionArguments returns false, the process redirects to logout directly. This is correct and not a problem.

The problem is when changing role. Since the changes inside are not atomic (one transaction) the OBContext could be changed and non of the session variables reset or set the new ones. The process prompts an error message to the user, but the state is inconsistent, the OBContext is changed so, some DAL based process could use the _new_ context, where some of the session variables are using the _old_ state.
The fillSessionArguments should be atomic, with the possibility to rollback the previous state on an error. This is a problem just when changing role using the 'Change Role' window.
No tags attached.
related to defect 00136502.50MP19 closed iperdomo The preferences are not loaded when accessing the application. 
Issue History
2010-06-17 13:16iperdomoNew Issue
2010-06-17 13:16iperdomoAssigned To => alostale
2010-06-17 13:17iperdomoRelationship addedrelated to 0013650
2010-06-17 13:22shuehnerIssue Monitored: shuehner
2010-06-23 10:41alostaleStatusnew => scheduled
2012-06-12 15:48alostaleTypedefect => design defect
2012-09-24 23:33AugustoMauchNote Added: 0052490
2012-09-24 23:33AugustoMauchPriorityurgent => high
2017-03-31 14:36alostaleStatusscheduled => acknowledged
2017-04-10 14:34alostaleAssigned Toalostale => platform
2022-02-01 08:08alostaleAssigned Toplatform => Triage Platform Base

Notes
(0052490)
AugustoMauch   
2012-09-24 23:33   
Effort: 1
Impact: low
Plan: short