Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038262Openbravo ERPA. Platformpublic2018-04-03 18:242022-02-01 08:05
caristu 
Triage Platform Base 
highminoralways
acknowledgedopen 
5
 
 
Core
No
0038262: Wrong behavior after trying to login with a user that does not have any assigned role
If we refresh the login page after trying to login with a user that does not have any assigned role, it will not be possible to reload the login page again.

Following this steps, the following error is raised in the log:
ERROR org.openbravo.dal.core.ThreadHandler - Your user is not assigned to a Role and it is required to login into Openbravo. Ask the Security Administrator
org.openbravo.base.exception.OBSecurityException: Your user is not assigned to a Role and it is required to login into Openbravo. Ask the Security Administrator
    at org.openbravo.dal.core.OBContext.initialize(OBContext.java:908)
    at org.openbravo.dal.core.OBContext.initialize(OBContext.java:850)
    at org.openbravo.dal.core.OBContext.initialize(OBContext.java:844)
    at org.openbravo.dal.core.OBContext.setFromRequest(OBContext.java:790)
    at org.openbravo.dal.core.OBContext.setOBContext(OBContext.java:387)
    at org.openbravo.dal.core.DalRequestFilter$1.doBefore(DalRequestFilter.java:78)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:44)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:105)
....
 
0) Create a new user without any role assigned to it.
1) Logout and try to login with the newly created user. Notice that an error is shown in the login page, this is correct.
2) Refresh the login page (by pressing F5 or clicking on the browser refresh button). Notice that an error page is displayed instead of the login page.

Note that to be able to display the login page again we need to clean the browser's cache and reload the login page again.
No tags attached.
Issue History
2018-04-03 18:24caristuNew Issue
2018-04-03 18:24caristuAssigned To => platform
2018-04-03 18:24caristuModules => Core
2018-04-03 18:24caristuTriggers an Emergency Pack => No
2018-04-03 18:26caristuDescription Updatedbug_revision_view_page.php?rev_id=16947#r16947
2018-06-15 11:19alostaleStatusnew => acknowledged
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.