kkolinko commented on pull request #412: URL: https://github.com/apache/tomcat/pull/412#issuecomment-817721078
> > > @kkolinko Regarding: > > > There rarely is a need to explicitly create roles like the above. When parsing the tomcat-users.xml file, all roles mentioned in users are created automatically. > > I wasn't aware of that. If roles are automatically generated, what's the use of the `role` tag at all? I just assumed it was required since it's present in all examples. - If you need to declare a role that has no users assigned to it, the role can be declared with a "role" element. Such use case is rare (e.g. if users are managed via some GUI and you want to be able to list all available roles). - When a user database is saved (written out), "role" elements are written as well, for completeness. This operation can be triggered via JMX. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
