Bug 48729

Summary: JNDIRealm.java not parsing roles correctly
Product: Tomcat 6 Reporter: eric
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 6.0.24   
Target Milestone: default   
Hardware: All   
OS: All   
Attachments: small patch for JNDIRealm.java

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.