Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032869Openbravo ERPA. Platformpublic2016-05-05 10:472022-02-01 08:09
alostale 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0032869: cannot switch to a role that's being defined in current session
When trying to switch to a role that is being defined in current session, it is possible to get an inconsistent state.

Note this situation is solved if after the role is completely defined, log out is done before using it.
1) Create a new Role with Organization access level
2) Assign it to the Openbravo user
3) Log out and log in
4) In the Role window again, navigate to the newly created role
5) Give it access to the "F&B International Group" organization
6) Give it access to the "F&B EspaƱa, S.A" organization
7) Using the profile menu, try to switch to this new role.
  -> Check Organization is empty, because it has not been refreshed with recently granted ones
  -> When switching, the following error appears:

Error occured: org.openbravo.base.exception.OBException: java.lang.IllegalArgumentException: Error when saving default values

Stack Trace:

Caused by: java.lang.IllegalArgumentException: Error when saving default values
    at org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler$UserSessionSetter.resetSession(UserInfoWidgetActionHandler.java:477)
    at org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler$UserSessionSetter.access$1(UserInfoWidgetActionHandler.java:432)
    at org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler.executeSaveCommand(UserInfoWidgetActionHandler.java:393)
    at org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler.execute(UserInfoWidgetActionHandler.java:91)
    ... 48 more
No tags attached.
related to feature request 0032398 closed alostale Role with Organization user level cannot see data in System/Client tables even if granted 
related to defect 0037289 closed inigosanchez It is not possible to do login using a role if the role has got a deactivated organization 
Issue History
2016-05-05 10:47alostaleNew Issue
2016-05-05 10:47alostaleAssigned To => platform
2016-05-05 10:47alostaleModules => Core
2016-05-05 10:47alostaleTriggers an Emergency Pack => No
2016-05-05 10:47alostaleRelationship addedrelated to 0032398
2016-05-05 10:54alostaleStatusnew => acknowledged
2016-05-05 10:54alostaleTypedefect => design defect
2016-05-05 10:56alostaleDescription Updatedbug_revision_view_page.php?rev_id=11973#r11973
2016-05-05 10:56alostaleDescription Updatedbug_revision_view_page.php?rev_id=11974#r11974
2017-11-14 13:59caristuRelationship addedhas duplicate 0037289
2017-11-14 14:04caristuRelationship deletedhas duplicate 0037289
2017-11-14 14:04caristuRelationship addedrelated to 0037289
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.