Bug 48729 - JNDIRealm.java not parsing roles correctly
JNDIRealm.java not parsing roles correctly
Product: Tomcat 6
Classification: Unclassified
Component: Catalina
All All
: P2 normal (vote)
: default
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2010-02-11 17:27 UTC by eric
Modified: 2010-05-24 08:05 UTC (History)
0 users

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:


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

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.