User: starksm 
  Date: 01/03/30 02:40:58

  Modified:    src/main/org/jboss/ejb/plugins SecurityInterceptor.java
  Log:
  Fix the logging of the method name that fails the access permission check.
  
  Revision  Changes    Path
  1.14      +3 -2      jboss/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java
  
  Index: SecurityInterceptor.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- SecurityInterceptor.java  2001/03/27 07:23:06     1.13
  +++ SecurityInterceptor.java  2001/03/30 10:40:58     1.14
  @@ -39,7 +39,7 @@
   
   @author <a href="[EMAIL PROTECTED]">Oleg Nitz</a>
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.13 $
  +@version $Revision: 1.14 $
   */
   public class SecurityInterceptor extends AbstractInterceptor
   {
  @@ -224,7 +224,8 @@
           */
           if( methodRoles == null || realmMapping.doesUserHaveRole(principal, 
methodRoles) == false )
           {
  -            Logger.error("Illegal access, principal="+principal+" method="+mi);
  +            String method = mi.getMethod().getName();
  +            Logger.error("Illegal access, principal="+principal+" method="+method);
               SecurityException e = new SecurityException("Illegal access exception");
               throw new RemoteException("checkSecurityAssociation", e);
           }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to