You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jc...@apache.org on 2007/08/29 13:27:04 UTC

svn commit: r570755 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java

Author: jcompagner
Date: Wed Aug 29 04:27:02 2007
New Revision: 570755

URL: http://svn.apache.org/viewvc?rev=570755&view=rev
Log:
if session is created in the getLastModified then also call unset again (the big question is if a detach call also should be done, but session.requestDetached() pretty much excepts a lot more like pages and dirty objects)

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java?rev=570755&r1=570754&r2=570755&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java Wed Aug 29 04:27:02 2007
@@ -823,6 +823,12 @@
 					// (if not, doFilter will clean it up)
 					Application.unset();
 				}
+				if (Session.exists())
+				{
+					// TODO should we also call detach? (or requestdetach?)
+					// But that does a lot more and expects a lot more (pages/dirtymap)
+					Session.unset();
+				}
 			}
 		}
 		return -1;