Bug 48729 - JNDIRealm.java not parsing roles correctly
Summary: JNDIRealm.java not parsing roles correctly
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 6.0.24
Hardware: All All
: P2 normal (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-11 17:27 UTC by eric
Modified: 2010-05-24 08:05 UTC (History)
0 users



Attachments
small patch for JNDIRealm.java (360 bytes, patch)
2010-02-11 17:27 UTC, eric
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eric 2010-02-11 17:27:55 UTC
Created attachment 24972 [details]
small patch for JNDIRealm.java

According to the docs:

http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html

it says roles can be specified by both userRoleName, AND roleName
mechanisms.

But, if both are used then the result is that userRoleName roles are
excluded.  I believe the correct approach is in the attached patch.
Comment 1 Mark Thomas 2010-03-09 12:16:37 UTC
Many thanks for the patch.

This has been fixed in trunk and proposed for 6.0.x.
Comment 2 Mark Thomas 2010-05-24 08:05:51 UTC
This has been fixed in 6.0.x and will be included in 6.0.27 onwards.