Mantis - Resin
Viewing Issue Advanced Details
3501 block always 05-12-09 12:35 08-25-09 16:29
skot  
ferg  
normal  
closed 4.0.1  
fixed  
none    
none 4.0.2  
0003501: Login/Authenticator (and Principal) Roles Ingored
If you call request.isUserInRole from a JSP the Login/Authenticator and Principal (CachingPrincipal as an example) roles are ignored.

Take a look at AbstractHttpRequest.java:1863 at the isUserInRole(String) method. See how it never grabs the Authenticator or Login classes to check for roles like the SecurityContext(line:109) does.
These seems like two different code path with considerably different results and that the request code should do what the SecurityContext code does, first.

Notes
(0004006)
skot   
05-12-09 16:32   
This seems to be a problem with the webapp being null and not checking the Login.
(0004042)
ferg   
05-27-09 15:47   
I'm confused. How is the webapp null if you're in a JSP file?
(0004157)
ferg   
08-25-09 16:29   
server/1a39