-
Bug
-
Resolution: Won't Do
-
Major
-
JBossAS-5.0.0.Beta2, JBossAS-4.2.2.GA
-
None
Consider the following test:
==============
/**
- Test a Method Permission for all methods of an EJB
*/
public void testAllStarEJBMethodPermission()
{
EJBMethodPermission policyPerm = new EJBMethodPermission("ejbName",
null, null, new String[0]);
EJBMethodPermission userPerm = new EJBMethodPermission("ejbName",
"create", dummyInterface.class.getMethods()[0]);
EJBMethodPermission userPerm2 = new EJBMethodPermission("ejbName", "a", "LocalHome", new String[]
{"java.lang.String"});
assertTrue(policyPerm.implies(userPerm));
assertTrue(policyPerm.implies(userPerm2));
}
========================================
The check for userPerm2 fails.
The permission in the Policy should check for "null" methodName (which implies "*") and also for the methodSignature to be "" (or String[0])
- blocks
-
JBAS-4971 org.jboss.test.cmp2.audit.test.AuditUnitTestCase
- Closed