You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/08/21 16:20:45 UTC
[tomcat] branch main updated: Make serializable
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 5bb8a5a91d Make serializable
5bb8a5a91d is described below
commit 5bb8a5a91d40c5873e6e000a3d5091b7c60c969b
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sun Aug 21 17:20:33 2022 +0100
Make serializable
This is part of the preparation to fix BZ 66120. The SavedRequest needs
to be Serializable to support replication across a cluster, persistence
to disk/database as well a range of third party solutions that use
Tomcat's serialization code.
---
java/org/apache/catalina/authenticator/SavedRequest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/authenticator/SavedRequest.java b/java/org/apache/catalina/authenticator/SavedRequest.java
index 6f4c3288c7..faaf8ec9a6 100644
--- a/java/org/apache/catalina/authenticator/SavedRequest.java
+++ b/java/org/apache/catalina/authenticator/SavedRequest.java
@@ -16,6 +16,7 @@
*/
package org.apache.catalina.authenticator;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
@@ -39,7 +40,9 @@ import org.apache.tomcat.util.buf.ByteChunk;
*
* @author Craig R. McClanahan
*/
-public final class SavedRequest {
+public final class SavedRequest implements Serializable {
+
+ private static final long serialVersionUID = 1L;
/**
* The set of Cookies associated with this Request.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org