You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2020/11/11 17:58:57 UTC

[wicket] branch WICKET-6847-onEndRequest-before-flush updated: WICKET-6847 clear pages in invalidateNow()

This is an automated email from the ASF dual-hosted git repository.

svenmeier pushed a commit to branch WICKET-6847-onEndRequest-before-flush
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/WICKET-6847-onEndRequest-before-flush by this push:
     new e87ef60  WICKET-6847 clear pages in invalidateNow()
e87ef60 is described below

commit e87ef60abfc0f31942a940cef93a3e68b62d4f0c
Author: Sven Meier <sv...@apache.org>
AuthorDate: Wed Nov 11 18:58:43 2020 +0100

    WICKET-6847 clear pages in invalidateNow()
    
    otherwise they will be stored on detach when no session is available and response already committed
---
 wicket-core/src/main/java/org/apache/wicket/Session.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wicket-core/src/main/java/org/apache/wicket/Session.java b/wicket-core/src/main/java/org/apache/wicket/Session.java
index 76f339c..9906da1 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Session.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Session.java
@@ -526,6 +526,9 @@ public abstract class Session implements IClusterable, IEventSink, IMetadataCont
 			invalidate();
 		}
 		
+		// clear all pages possibly pending in the request
+		getPageManager().clear();
+		
 		destroy();
 		feedbackMessages.clear();
 		setStyle(null);