tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1491270 - /tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java
Date Sun, 09 Jun 2013 19:36:31 GMT
Author: rmannibucau
Date: Sun Jun  9 19:36:31 2013
New Revision: 1491270

URL: http://svn.apache.org/r1491270
Log:
don't set principal name associated with role in run as case if null

Modified:
    tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java?rev=1491270&r1=1491269&r2=1491270&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java
(original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java
Sun Jun  9 19:36:31 2013
@@ -1352,7 +1352,9 @@ public class BeanContext extends Deploym
     }
 
     public void setRunAsUser(final String runAsUser) { // principal
-        this.runAsUser = runAsUser;
+        if (runAsUser != null) {
+            this.runAsUser = runAsUser;
+        }
     }
 
     public String toString() {



Mime
View raw message