portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <da...@bluesunrise.com>
Subject Re: Security "Mapping Only" Feature for Groups
Date Mon, 05 Nov 2007 18:27:20 GMT

On Nov 4, 2007, at 5:07 PM, prasana wrote:

>
> This is the same patch I came up here.
> But in addition to making this changes, you need to make one more  
> change
> also.
>
> Since calling the Constructor of InternalGroupPrincipalImpl(String  
> fullPath)
> +            internalGroup = new
> InternalGroupPrincipalImpl(groupFullPathName);
> will not instantiate the collection rolePrincipals, this will  
> result in
> NullPointerException in the following line.
> Collection internalRoles = internalGroup.getRolePrincipals();
>
> So in the Constructor of InternalGroupPrincipalImpl(String fullPath)
> rolePrincipals collection needs to be instantiated.
>
>     public InternalGroupPrincipalImpl(String fullPath)
>     {
>         super(GROUP_PRINCIPAL_CLASSNAME, fullPath);
> +          this.rolePrincipals = new ArrayList();
>     }
>
> This will fix the NullPointerException exception
>
Applied this patch amongst others. I've reopened the JIRA issue:

https://issues.apache.org/jira/browse/JS2-21

will be committing soon...




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message