I have noticed, while trying JUnit test on org.jboss.security, that permissions which 
are granted to the role are not applied to the subject (user) to whom this role  is 
assigned. 

Login process pass just fine and the initialized subject looks like:

anonymous wrote : Subject:
  |     Principal: vmatic
  |     Principal: Roles(members:superadmin,Users)

e.g. role Users is assigned to vmatic.
further if I grant permission to the role Users:

<authorization>
  |       <grant>
  |           <principal code = "org.jboss.security.SimplePrincipal" name = "Users"/>
  |       <permission code = "org.jboss.test.NamespacePermission" name = 
"Project1/Documents/Public" actions = "r---"/>
  |       </grant>
  |     </authorization>

AccessController.checkPermission(..); on vmatic Subject breaks, while if grant is made 
directly to the user everything works fine (permission is verified by 
AccessController).

Is this normal behavior?  






<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827397#3827397";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827397>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to