You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2001/01/17 19:48:26 UTC

BugRat Report #791 has been filed.

Bug report #791 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/791>

REPORT #791 Details.

Project: Tomcat
Category: Feature Requests
SubCategory: Enhancement
Class: swbug
State: received
Priority: medium
Severity: critical
Confidence: public
Environment: 
   Release: Tomcat 3.2.1
   JVM Release: NA
   Operating System: NA
   OS Release: NA
   Platform: NA

Synopsis: 
JDBCRealm: authenticating a user that is not in any groups results in ArrayIndexOutOfBoundException if logging is on

Description:
After JDBCRealm.authorize calls
  userRoles = getUserRoles( user );
It calls 
  if( debug > 0 ) log( "Auth ok, first role=" + userRoles[0] );

If debug is turned on, and the current user has no roles, this results in an ArrayIndexOutOfBoundsException