-
Feature Request
-
Resolution: Done
-
Major
-
8.0.0.CR1
When authentication has taken place in a web application such that HttpServletRequest#getUserPrincipal does not return null, testing for role '**' using HttpServletRequest#isUserInRole returns false.
This is not correct. According to Servlet 13.3:
If the role-name of the security-role to be tested is “**”, and the application has NOT declared an application security-role with role-name “**”, isUserInRole must only return true if the user has been authenticated;
This is demonstrated by the following test: