[jboss-cvs] JBossAS SVN: r109496 - trunk/server/src/main/java/org/jboss/ejb/plugins.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 26 12:11:07 EST 2010


Author: mmoyses
Date: 2010-11-26 12:11:07 -0500 (Fri, 26 Nov 2010)
New Revision: 109496

Modified:
   trunk/server/src/main/java/org/jboss/ejb/plugins/SecurityInterceptor.java
Log:
JBAS-8600: runAsIdentity is incorrectly set once changed

Modified: trunk/server/src/main/java/org/jboss/ejb/plugins/SecurityInterceptor.java
===================================================================
--- trunk/server/src/main/java/org/jboss/ejb/plugins/SecurityInterceptor.java	2010-11-26 17:03:00 UTC (rev 109495)
+++ trunk/server/src/main/java/org/jboss/ejb/plugins/SecurityInterceptor.java	2010-11-26 17:11:07 UTC (rev 109496)
@@ -248,18 +248,19 @@
          throw e;
       }
 
+      RunAs runAsIdentityToPush = runAsIdentity;
       /**
        * Special case: if <use-caller-identity> configured and
        * the caller is arriving with a run-as, we need to push that run-as
        */
       if (callerRunAsIdentity != null && this.isUseCallerIdentity)
-         this.runAsIdentity = callerRunAsIdentity;
+         runAsIdentityToPush = callerRunAsIdentity;
 
       /* 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);
+      SecurityActions.pushRunAsIdentity(runAsIdentityToPush);
 
       try
       {



More information about the jboss-cvs-commits mailing list