Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006100Openbravo ERPC. Securitypublic2008-11-20 12:022009-04-21 10:53
rafaroda 
artem 
lowminorhave not tried
closedfixed 
20Ubuntu 7.10
pi 
2.50 
Core
No
0006100: Improve message when a user without roles try to login
When an user without roles tries to login the message should be:
Login failure: your user is not assigned to a Role and it is required to login into Openbravo. Ask the Security Administrator
1) Logged as Openbravo Administrator create a new user: 4.Create user http://wiki.openbravo.com/wiki/Acceptance_Testing#Administration_master_data [^]
2) Do NOT assign a role to this user and logout.
3) Try to login

Error page displays:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.openbravo.base.exception.OBException: Exception thrown There are no valid and active user roles for user with id: 56D70FABD24D430FB171D8F20916C5A1
    org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:57)
    org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:75)
Modify the failure page in order that the message displays with the standard look and feel.

The message should be:
Login failure: your user is not assigned to a Role and it is required to login into Openbravo. Ask the Security Administrator
commsup_sprint6, maintenances
related to defect 00060502.50 closed mtaal [QA-alpha-r1] If I try to login with an user with no roles, I get an exception and cannot continue using Openbravo 
png Issue6100.png (19,974) 2009-02-13 11:14
https://issues.openbravo.com/file_download.php?file_id=842&type=bug
png
Issue History
2008-11-20 12:02rafarodaNew Issue
2008-11-20 12:02rafarodaAssigned To => rafaroda
2008-11-20 12:02rafarodasf_bug_id0 => 2317169
2008-11-20 12:02rafarodaRegression testing => No
2008-11-24 09:45rafarodaRelationship addedrelated to 0006050
2008-11-24 22:24svnbotCheckin
2008-11-24 22:24svnbotNote Added: 0010589
2008-11-24 22:24svnbotStatusnew => resolved
2008-11-24 22:24svnbotResolutionopen => fixed
2008-11-24 22:24svnbotsvn_revision => 10498
2008-11-24 22:28mtaalNote Added: 0010590
2008-11-25 08:19rafarodaStatusresolved => new
2008-11-25 08:19rafarodaResolutionfixed => open
2008-11-25 08:19rafarodaPriorityhigh => low
2008-11-25 08:19rafarodaSeveritymajor => minor
2008-11-25 08:19rafarodaNote Deleted: 0010590
2008-11-25 08:19rafarodaNote Deleted: 0010589
2008-12-09 13:39pheenanAssigned Torafaroda => pheenan
2008-12-16 18:36rafarodaProposed Solution updated
2008-12-16 18:36rafarodaSteps to Reproduce Updated
2008-12-16 18:37rafarodaStatusnew => scheduled
2008-12-16 18:37rafarodafix_in_branch => trunk
2009-02-13 09:44pheenanAssigned Topheenan => gmauleon
2009-02-13 11:14gmauleonFile Added: Issue6100.png
2009-02-13 11:14gmauleonTag Attached: commsup_sprint6
2009-02-13 11:14gmauleonTag Attached: maintenances
2009-02-13 11:43gmauleonStatusscheduled => closed
2009-02-13 11:43gmauleonNote Added: 0013455
2009-02-13 11:43gmauleonResolutionopen => no change required
2009-02-13 16:18rafarodaStatusclosed => new
2009-02-13 16:18rafarodaResolutionno change required => open
2009-02-13 16:18rafarodaStatusnew => scheduled
2009-02-13 16:41gmauleonNote Edited: 0013455
2009-02-13 16:41gmauleonAssigned Togmauleon => pheenan
2009-03-09 14:03artemAssigned Topheenan => artem
2009-03-09 15:21hgbotCheckin
2009-03-09 15:21hgbotNote Added: 0014526
2009-03-09 15:21hgbotStatusscheduled => resolved
2009-03-09 15:21hgbotResolutionopen => fixed
2009-03-09 15:21hgbotFixed in SCM revision10498 => http://code.openbravo.com/erp/devel/pi/rev/09b0e6ba6bd5de574cbe9d1996e27d98eccd592a [^]
2009-04-21 10:53psarobeStatusresolved => closed

Notes
(0013455)
gmauleon   
2009-02-13 11:43   
(edited on: 2009-02-13 16:41)
The error message does not shows the reported message. But shows the same error you get when the log process failed.

(0014526)
hgbot   
2009-03-09 15:21   
Repository: erp/devel/pi
Changeset: 09b0e6ba6bd5de574cbe9d1996e27d98eccd592a
Author: Artem Zakolodkin <artem.zakolodkin <at> opensuite.com>
Date: Mon Mar 09 16:17:30 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/09b0e6ba6bd5de574cbe9d1996e27d98eccd592a [^]

Fixed bug 0006100: Improve message when a user without roles try to login

---
M src/org/openbravo/base/secureApp/LoginHandler.java
M src/org/openbravo/dal/core/OBContext.java
---