geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r787768 - /geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/realm/TomcatGeronimoRealm.java
Date Tue, 23 Jun 2009 17:59:54 GMT
Author: gawor
Date: Tue Jun 23 17:59:53 2009
New Revision: 787768

URL: http://svn.apache.org/viewvc?rev=787768&view=rev
Log:
make sure transport-guarantee is enforced.

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=787768&r1=787767&r2=787768&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
Tue Jun 23 17:59:53 2009
@@ -96,6 +96,13 @@
                                          SecurityConstraint[] constraints)
             throws IOException {
 
+        /**
+         * Ensures the transport-guarantee (if any) is met. 
+         */
+        if (!super.hasUserDataPermission(request, response, constraints)) {
+            return false;
+        }
+        
         setSubject(request);
         try {
 



Mime
View raw message