[
https://issues.apache.org/jira/browse/FC-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14733702#comment-14733702
]
Olaf Jentsch commented on FC-113:
---------------------------------
Thank you for null check.
We have got the null pointer exception calling canAssing in our code to test
the data model, mainly which users with which AdminRole can assign which roles.
But I suspect, that there is another problem in the "canAssing" function.
We only succeeded (canAssign=true) with users, that have assigned AdminRole
fortress-core-super-admin.
All other users are not checked correctly. I suppose, that the UserAdminRole
object getting from session by session.getAdminRoles() doesn't contain all
data, all properties which are saved in the original ldap object, especially it
doesn't contain the ftRange property. Thus canAssign=false in all our cases.
> Delegated access manager throws null pointer exception if admin role range
> not set
> ----------------------------------------------------------------------------------
>
> Key: FC-113
> URL: https://issues.apache.org/jira/browse/FC-113
> Project: FORTRESS
> Issue Type: Bug
> Affects Versions: 1.0.0-RC41
> Reporter: Chris Pike
> Priority: Minor
>
> When calling canAssign in the delegated access manager, getting a null
> pointer exception if admin role range isn't set. See line 354 and 428 of
> DelAccessMgrImpl.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)