[jboss-dev-forums] [Design of JBoss Portal] - permission bug ?

cpage do-not-reply at jboss.com
Fri Oct 10 09:58:04 EDT 2008


Hi,

I noticed a strange behaviour in permissions.
When i initialize a PortalObjectPermission (or an InstancePermission) with some actions, the "getActions()" function return different actions.
For example :

  | PortalObjectPermission perm = new PortalObjectPermission(myPageId, "view");
  | String actions = perm.getActions(); // --> return create,personalizerecursive,dashboardrecursive
  | 
  | perm = new PortalObjectPermission(myPageId, "personalize");
  | actions = perm.getActions(); // --> return personalizerecursive,dashboardrecursive
  | 

In getActions(), to have same actions, i replace 
int mask = 2 >> i;
by :
int mask = 1 << i;

If it's not a bug, can you explain please ?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181510#4181510

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181510



More information about the jboss-dev-forums mailing list