This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 8314f1b99d Make serializable
8314f1b99d is described below
commit 8314f1b99d326a28332765d58183fadb6d02fd98
Author: Mark Thomas <[email protected]>
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 e13fa591c6..c8ea2fadf2 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: [email protected]
For additional commands, e-mail: [email protected]