[jboss-cvs] JBossAS SVN: r57566 - branches/JEE5_TCK/ejb3/src/main/org/jboss/ejb3/security

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Oct 11 12:40:38 EDT 2006


Author: anil.saldhana at jboss.com
Date: 2006-10-11 12:40:37 -0400 (Wed, 11 Oct 2006)
New Revision: 57566

Modified:
   branches/JEE5_TCK/ejb3/src/main/org/jboss/ejb3/security/RunAsSecurityInterceptor.java
Log:
EJBTHREE-735: Rollback the pushing the RunAsIdentity on the stack as it is done by the base interceptor in the aspects module

Modified: branches/JEE5_TCK/ejb3/src/main/org/jboss/ejb3/security/RunAsSecurityInterceptor.java
===================================================================
--- branches/JEE5_TCK/ejb3/src/main/org/jboss/ejb3/security/RunAsSecurityInterceptor.java	2006-10-11 15:23:22 UTC (rev 57565)
+++ branches/JEE5_TCK/ejb3/src/main/org/jboss/ejb3/security/RunAsSecurityInterceptor.java	2006-10-11 16:40:37 UTC (rev 57566)
@@ -50,20 +50,8 @@
    }
 
    public Object invoke(Invocation invocation) throws Throwable
-   {
-      try
-      { 
-         /* If a run-as role was specified, push it so that any calls made
-         by this bean will have the runAsRole available for declarative
-         security checks.
-         */
-         SecurityActions.pushRunAsIdentity(runAsIdentity);
-         return super.invoke(invocation);
-      }
-      finally
-      {
-         SecurityActions.popRunAsIdentity();  
-      }
+   { 
+      return super.invoke(invocation); 
    }
 
 }




More information about the jboss-cvs-commits mailing list