Port fox for bug 41217. Set secure attribute on SSO cookie when cookie is created...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 27 Jan 2007 21:25:41 +0000 (21:25 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 27 Jan 2007 21:25:41 +0000 (21:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@500626 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/authenticator/AuthenticatorBase.java
webapps/docs/changelog.xml

index 572ec9f..2915a9d 100644 (file)
@@ -743,6 +743,9 @@ public abstract class AuthenticatorBase
             cookie.setMaxAge(-1);
             cookie.setPath("/");
             
+            // Bugzilla 41217
+            cookie.setSecure(request.isSecure());
+
             // Bugzilla 34724
             String ssoDomain = sso.getCookieDomain();
             if(ssoDomain != null) {
index 7bc662b..81fd38a 100644 (file)
         Fix error messages when parsing context.xml that incorrectly referred to
         web.xml. (markt)
       </fix>
+      <fix>
+        <bug>41217</bug>: Set secure attribute on SSO cookie when cookie is
+        created during a secure request. Patch provided by Chris Halstead.
+        (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Jasper">