This content has been marked as final.
Show 4 replies
-
1. Re: Regression introduced with JACC EJBMethodPermission
anil.saldhana Dec 7, 2007 3:12 PM (in response to anil.saldhana)I think it is a regression because p0 means a method with zero arguments whereas p1 means a perm for a specific method name but various overloaded arguments(all overloaded methods).
So, I think p1.implies(p0) == true where as p0.implies(p1) == false. -
2. Re: Regression introduced with JACC EJBMethodPermission
anil.saldhana Dec 8, 2007 2:22 PM (in response to anil.saldhana)I need to rollback the change I made in JBAS-5014. I already did it for Branch_4_2. I need to do the same for javaee project.
UPDATE: Rolledback in javaee project also. -
3. Re: Regression introduced with JACC EJBMethodPermission
starksm64 Dec 8, 2007 2:57 PM (in response to anil.saldhana)"anil.saldhana@jboss.com" wrote:
I think it is a regression because p0 means a method with zero arguments whereas p1 means a perm for a specific method name but various overloaded arguments(all overloaded methods).
So, I think p1.implies(p0) == true where as p0.implies(p1) == false.
Yes, that is how these should evaluate. -
4. Re: Regression introduced with JACC EJBMethodPermission
anil.saldhana Dec 10, 2007 2:44 AM (in response to anil.saldhana)The reason the JACC tests were failing were due to:
for(MethodPermissionMetaData perm : perms) { MethodsMetaData methods = perm.getMethods(); if(methods != null) for(org.jboss.metadata.ejb.spec.MethodMetaData mmd : methods) { String[] params = {}; if(mmd.getMethodParams() != null) params = mmd.getMethodParams().toArray(params); else params = null; <= I ADDED THIS NULL
Because the an empty array implies method with zero arguments, whereas a null array means all methods.