Realm editor assigns Maintain Role=maintain by default even if that role doesn't exist
GENERAL
TESTING
GENERAL
TESTING
Description
When adding a new realm or editing an existing one, if left blank, the Maintain Role field is by default set to 'maintain', even if that role doesn't exist in the realm.
Also, it's a textfield so I could write 'steve' in there and it would accept it.
If this is in the !site.template sites, then creatinga new site will put this error in catalina.out:
WARN: .addUserRole: role undefined: steve (2008-09-03 18:33:31,255 http-8082-Processor25_org.sakaiproject.authz.impl.BaseAuthzGroup)
This should be changed to a dropdown list of the roles already defined in the realm so that it cannot be wrongly filled out, and NOT default to 'maintain'.
Activity
Steve Swinsburg August 14, 2019 at 8:17 AM
Edited
Removed the fix version of 20 since this was resolved many years ago and definitely not in v20.
Thomas Kelsey August 13, 2019 at 8:16 AM
Marking this issue as fixed, and resolving. See comments above
Jean-François Lévêque February 12, 2013 at 5:27 AM
Could you write down how you resolved this in case others face the same issue?
Miguel Pellicer February 12, 2013 at 3:37 AM
I didn't ask Savitha, but don't worry about it, i resolved it in our 2.7.1.
I can confirm this is resolved in 2.8.x, 2.9.x and trunk, so you can mark it as "won't fix"
Thank you JF!
Jean-François Lévêque February 12, 2013 at 3:31 AM
Miguel, I'm afraid 2.7 is not maintained anymore. Because you confirmed the maintained branches have this fixed, this issue will probably end as "Won't Fix".
As for how this was fixed, I cannot answer myself. Was Savitha asked?
When adding a new realm or editing an existing one, if left blank, the Maintain Role field is by default set to 'maintain', even if that role doesn't exist in the realm.
Also, it's a textfield so I could write 'steve' in there and it would accept it.
If this is in the !site.template sites, then creatinga new site will put this error in catalina.out:
WARN: .addUserRole: role undefined: steve (2008-09-03 18:33:31,255 http-8082-Processor25_org.sakaiproject.authz.impl.BaseAuthzGroup)
This should be changed to a dropdown list of the roles already defined in the realm so that it cannot be wrongly filled out, and NOT default to 'maintain'.