Author: sdumitriu
Date: 2008-02-15 17:50:20 +0100 (Fri, 15 Feb 2008)
New Revision: 7764

Modified:
   
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyPersistentLoginManager.java
   
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyPersistentLoginManager.java
Log:
XWIKI-2119: Authentication fails with current tomcat versions   
Fixed.
Tested in Tomcat 6.0.14, 6.0.16 and Jetty
Merged from [EMAIL PROTECTED]


Modified: 
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyPersistentLoginManager.java
===================================================================
--- 
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyPersistentLoginManager.java
       2008-02-15 16:46:32 UTC (rev 7763)
+++ 
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyPersistentLoginManager.java
       2008-02-15 16:50:20 UTC (rev 7764)
@@ -128,6 +128,7 @@
     public void setupCookie(Cookie cookie, boolean sessionCookie, String 
cookieDomain,
         HttpServletResponse response)
     {
+        cookie.setVersion(1);
         if (!sessionCookie) {
             setMaxAge(cookie);
         }

Modified: 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyPersistentLoginManager.java
===================================================================
--- 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyPersistentLoginManager.java
    2008-02-15 16:46:32 UTC (rev 7763)
+++ 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyPersistentLoginManager.java
    2008-02-15 16:50:20 UTC (rev 7764)
@@ -130,6 +130,7 @@
     public void setupCookie(Cookie cookie, boolean sessionCookie, String 
cookieDomain,
         HttpServletResponse response)
     {
+        cookie.setVersion(1);
         if (!sessionCookie) {
             setMaxAge(cookie);
         }

_______________________________________________
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to