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

markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.0.x by this push:
     new 853056dc0c Make serializable
853056dc0c is described below

commit 853056dc0c26d70e3647211dded2deb5eeb23ccf
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to