geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1145056 - /geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/jacc/JACCRealm.java
Date Mon, 11 Jul 2011 07:50:00 GMT
Author: xuhaihong
Date: Mon Jul 11 07:50:00 2011
New Revision: 1145056

URL: http://svn.apache.org/viewvc?rev=1145056&view=rev
Log:
GERONIMO-6057 HttpServletRequest.isUserInRole() returns wrong value (Patch from Fang Sheng
Hao)

Modified:
    geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/jacc/JACCRealm.java

Modified: geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/jacc/JACCRealm.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/jacc/JACCRealm.java?rev=1145056&r1=1145055&r2=1145056&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/jacc/JACCRealm.java
(original)
+++ geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/security/jacc/JACCRealm.java
Mon Jul 11 07:50:00 2011
@@ -75,7 +75,7 @@ public class JACCRealm implements Realm 
     @Override
     public boolean hasRole(Wrapper wrapper, Principal principal, String role) {
         AccessControlContext acc = ContextManager.getCurrentContext();
-        String name = wrapper.getName();
+        String name = currentRequestWrapperName.get();
 
         /**
          * JACC v1.0 secion B.19



Mime
View raw message