Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031529Openbravo ERPA. Platformpublic2015-11-19 10:142022-02-01 08:09
asiermartirena 
Triage Platform Base 
urgentmajorhave not tried
newopen 
5
 
 
Core
No
0031529: Extension needed in SessionLogin.java to save new columns values when saving new sessions
There are cases where is necessary to find some sessions (from ad_session) depending on the organization in which was created. Now, all sessions are saved with '*' organization.

There are at least two ways to address this problem:
- Avoid always using the '*' organization when a session is created, and instead use the organization included in the parameters of the request
- Include a new column in the ad_session table, set it to the proper organization when the session is created and then use it to retrieve the session that belong to a certain organization.

Probably the second option is less risky. There might be code that is assuming that ad_org_id column of the sessions will always use the '*' organization, so the first option could have unexpected consequences.

The second option would require to extend SessionLogin to initialize column defined in other modules, as the development that requires will be part of the posterminal module.
Add a new hook in save() function, in SessionLogin.java class.
No tags attached.
Issue History
2015-11-19 10:14asiermartirenaNew Issue
2015-11-19 10:14asiermartirenaAssigned To => platform
2015-11-19 10:14asiermartirenaModules => Core
2015-11-19 10:14asiermartirenaTriggers an Emergency Pack => No
2015-11-19 10:24AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=10292#r10292
2017-03-23 14:55hgbotCheckin
2017-03-23 14:55hgbotNote Added: 0095532
2017-03-23 16:37markmm82Note Deleted: 0095532
2017-03-23 20:41hudsonbotCheckin
2017-03-23 20:41hudsonbotNote Added: 0095552
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

Notes
(0095552)
hudsonbot   
2017-03-23 20:41   
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/dd3f45964ae4 [^]
Maturity status: Test