geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r663423 - /geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/realm/TomcatGeronimoRealm.java
Date Thu, 05 Jun 2008 00:26:08 GMT
Author: djencks
Date: Wed Jun  4 17:26:08 2008
New Revision: 663423

URL: http://svn.apache.org/viewvc?rev=663423&view=rev
Log:
GERONIMO-4099 don't wipe out run-as info because you didn't notice callers are set elsewhere

Modified:
    geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/realm/TomcatGeronimoRealm.java

Modified: geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/realm/TomcatGeronimoRealm.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/realm/TomcatGeronimoRealm.java?rev=663423&r1=663422&r2=663423&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/realm/TomcatGeronimoRealm.java
(original)
+++ geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/realm/TomcatGeronimoRealm.java
Wed Jun  4 17:26:08 2008
@@ -215,10 +215,6 @@
      */
     public boolean hasRole(Principal principal, String role) {
 
-        if ((principal == null) || (role == null) || !(principal instanceof JAASTomcatPrincipal))
{
-            return false;
-        }
-
         String name = currentRequestWrapperName.get();
 
         /**
@@ -228,10 +224,6 @@
             name = "";
         }
 
-        //Set the caller
-        Subject currentCaller = ((JAASTomcatPrincipal) principal).getSubject();
-        ContextManager.setCallers(currentCaller, currentCaller);
-
         AccessControlContext acc = ContextManager.getCurrentContext();
 
         try {



Mime
View raw message