New groups do not get custom roles that have been added to a site's realm.
GENERAL
TESTING
GENERAL
TESTING
Description
We created a new project site then added a Student role to that site's realm. Then we created a new group and tried to add a user with the Student role to that group. It failed with no message in the UI but the Tomcat log showed: "WARN: .addUserRole: role undefined: Student (2007-08-01 09:33:22,166 http-80-Processor24_org.sakaiproject.authz.impl.BaseAuthzGroup)"
We did a little digging and found that it was because the group's realm was created using the default permissions from either !site.template or !group.template.
Adding the role to the group manually resolved the problem.
Activity
Neal Caidin August 14, 2017 at 1:59 PM
Bulk closing issues that have not been updated since 2014 and earlier. Please reopen if this is still an issue and you have new information.
We created a new project site then added a Student role to that site's realm. Then we created a new group and tried to add a user with the Student role to that group. It failed with no message in the UI but the Tomcat log showed:
"WARN: .addUserRole: role undefined: Student (2007-08-01 09:33:22,166 http-80-Processor24_org.sakaiproject.authz.impl.BaseAuthzGroup)"
We did a little digging and found that it was because the group's realm was created using the default permissions from either !site.template or !group.template.
Adding the role to the group manually resolved the problem.