[jboss-cvs] JBossAS SVN: r109495 - branches/JBPAPP_5_1/server/src/main/org/jboss/ejb/plugins.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Nov 26 12:03:01 EST 2010
Author: mmoyses
Date: 2010-11-26 12:03:00 -0500 (Fri, 26 Nov 2010)
New Revision: 109495
Modified:
branches/JBPAPP_5_1/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java
Log:
JBPAPP-5476: runAsIdentity is incorrectly propagated once changed
Modified: branches/JBPAPP_5_1/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java
===================================================================
--- branches/JBPAPP_5_1/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java 2010-11-26 16:04:08 UTC (rev 109494)
+++ branches/JBPAPP_5_1/server/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java 2010-11-26 17:03:00 UTC (rev 109495)
@@ -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