prevent issues when changing role manager implementation
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1471396 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
85ea600465
commit
420044caa5
|
@ -721,9 +721,19 @@ public abstract class AbstractRBACManager
|
|||
try
|
||||
{
|
||||
Role child = getRole( roleName );
|
||||
// archiva can change role manager but LDAP can be non writable so in such case
|
||||
// some roles doesn't exists !!
|
||||
if ( child != null )
|
||||
{
|
||||
childRoles.put( child.getName(), child );
|
||||
updatedChildRoleList.add( roleName );
|
||||
}
|
||||
else
|
||||
{
|
||||
log.warn(
|
||||
"error searching role with name '{}' probably some issues when migrating your role manager" );
|
||||
}
|
||||
}
|
||||
catch ( RbacObjectNotFoundException e )
|
||||
{
|
||||
// Found a bad roleName! - trigger new List save
|
||||
|
|
Loading…
Reference in New Issue