[jboss-cvs] JBossAS SVN: r109626 - branches/JBPAPP_5_0_1_GA_JBPAPP-5483/server/src/main/org/jboss/ejb/plugins.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 1 11:02:22 EST 2010
Author: ShaunA
Date: 2010-12-01 11:02:20 -0500 (Wed, 01 Dec 2010)
New Revision: 109626
Modified:
branches/JBPAPP_5_0_1_GA_JBPAPP-5483/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java
Log:
Fix for JBPAPP-5483. RunAs Identity is now properly restored.
Modified: branches/JBPAPP_5_0_1_GA_JBPAPP-5483/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java
===================================================================
--- branches/JBPAPP_5_0_1_GA_JBPAPP-5483/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java 2010-12-01 14:57:35 UTC (rev 109625)
+++ branches/JBPAPP_5_0_1_GA_JBPAPP-5483/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java 2010-12-01 16:02:20 UTC (rev 109626)
@@ -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