This is an automated email from the ASF dual-hosted git repository. jfisher pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/main by this push: new 4d9f032368 Fix TOMEE-4222 - LoginToContinue causes IllegalArgumentException: setAttribute: Non-serializable attribute new 7e9453719b Merge pull request #1053 from exabrial/TOMEE-4222_jsr-375-IllegalArgumentException-Non-serializable-attribute 4d9f032368 is described below commit 4d9f032368d4cac936ed40c1ad7771ca4021b8b6 Author: Jonathan S. Fisher <exabr...@gmail.com> AuthorDate: Thu Jun 8 10:21:01 2023 -0500 Fix TOMEE-4222 - LoginToContinue causes IllegalArgumentException: setAttribute: Non-serializable attribute --- .../java/org/apache/tomee/security/http/SavedAuthentication.java | 5 ++++- .../src/main/java/org/apache/tomee/security/http/SavedRequest.java | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tomee/tomee-security/src/main/java/org/apache/tomee/security/http/SavedAuthentication.java b/tomee/tomee-security/src/main/java/org/apache/tomee/security/http/SavedAuthentication.java index 5c303535c0..6788422fd3 100644 --- a/tomee/tomee-security/src/main/java/org/apache/tomee/security/http/SavedAuthentication.java +++ b/tomee/tomee-security/src/main/java/org/apache/tomee/security/http/SavedAuthentication.java @@ -22,7 +22,10 @@ import java.util.Set; import static java.util.Collections.unmodifiableSet; -public final class SavedAuthentication { +import java.io.Serializable; + +public final class SavedAuthentication implements Serializable { + private static final long serialVersionUID = 1L; private final Principal principal; private final Set<String> groups; diff --git a/tomee/tomee-security/src/main/java/org/apache/tomee/security/http/SavedRequest.java b/tomee/tomee-security/src/main/java/org/apache/tomee/security/http/SavedRequest.java index 24fef8c240..3c900fa07f 100644 --- a/tomee/tomee-security/src/main/java/org/apache/tomee/security/http/SavedRequest.java +++ b/tomee/tomee-security/src/main/java/org/apache/tomee/security/http/SavedRequest.java @@ -19,6 +19,8 @@ package org.apache.tomee.security.http; import org.apache.tomcat.util.buf.ByteChunk; import jakarta.servlet.http.Cookie; + +import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -30,7 +32,8 @@ import java.util.Map; /** * Mostly copied from org.apache.catalina.authenticator.SavedRequest. */ -public final class SavedRequest { +public final class SavedRequest implements Serializable { + private static final long serialVersionUID = 1L; SavedRequest() { }