[jboss-dev-forums] [Design of Security on JBoss] - Re: Regression introduced with JACC EJBMethodPermission
anil.saldhana@jboss.com
do-not-reply at jboss.com
Mon Dec 10 02:44:59 EST 2007
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111521#4111521
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111521
More information about the jboss-dev-forums
mailing list