Hi everyone,
I'm in a bit of a situation, i need to finish this piece of code today and have wasted the past day trying to figure out why i get an error.
The code is the following:
test = (IResource) aResourceFactory.getResource(RID.getRID(repoIds<i> + papers), rContext); aclMan = ((IAclSecurityManager) test.getRepositoryManager().getSecurityManager(test)).getAclManager(); acl = aclMan.getAcl(test); if (acl != null) hasPerms<i> = acl.checkPermission(role, aclMan.getPermission(IAclPermission.ACL_PERMISSION_READ));
The variables are defined above and it works fine for most of the folders it checks. However on a couple of folders it just throws an exception which gives to useful message, i.e. no stack trace or anything, and printing getMessage() return:
com.sapportals.portal.security.usermanagement.WrappedRole
Anyone have a clue as to why this happens?
Thanks