Details
Description
When trying to add a role to a user, if the user already has that role, OutOfMemoryError occurs. Error is caused by org.apache.jetspeed.security.mapping.model.impl.AttributeImpl toString method. It causes an infinite loop is the attribute is multi-valued.
PS: j2-admin user management portlet does not let you to add the role to the user more than once, but programmatically one can add the role to the user.