From fe836fef5764d4784164c9bbd8d6b6653984e56a Mon Sep 17 00:00:00 2001 From: Angel Gruevski <81828120+angel-gruevski@users.noreply.github.com> Date: Sat, 6 Apr 2024 15:53:08 +0200 Subject: [PATCH 1/2] Corrected a mistake in the documentation for the Spring Architecture where it was mentioned that RequestCacheAwareFilter is used to save the HttpServletRequest instead of the ExceptionTranslationFilter --- docs/modules/ROOT/pages/servlet/architecture.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/servlet/architecture.adoc b/docs/modules/ROOT/pages/servlet/architecture.adoc index 98154a3bc6b..a2c7dc8f2ef 100644 --- a/docs/modules/ROOT/pages/servlet/architecture.adoc +++ b/docs/modules/ROOT/pages/servlet/architecture.adoc @@ -449,7 +449,7 @@ In Spring Security this is done by saving the `HttpServletRequest` using a <> is what uses the `RequestCache` to save the `HttpServletRequest`. +The `RequestCacheAwareFilter` uses the `RequestCache` to get the saved `HttpServletRequest` after the user authenticates, while the `ExceptionTranslationFilter` uses the `RequestCache` to save the `HttpServletRequest` after it detects `AuthenticationException`, before redirecting the user to the login endpoint. By default, an `HttpSessionRequestCache` is used. The code below demonstrates how to customize the `RequestCache` implementation that is used to check the `HttpSession` for a saved request if the parameter named `continue` is present. @@ -517,7 +517,7 @@ XML:: [[requestcacheawarefilter]] === RequestCacheAwareFilter -The {security-api-url}org/springframework/security/web/savedrequest/RequestCacheAwareFilter.html[`RequestCacheAwareFilter`] uses the <> to save the `HttpServletRequest`. +The {security-api-url}org/springframework/security/web/savedrequest/RequestCacheAwareFilter.html[`RequestCacheAwareFilter`] uses the <> to replay the original request. [[servlet-logging]] == Logging From 1f57275a3dea911c4dd6afe4652eb8b3d958425e Mon Sep 17 00:00:00 2001 From: Angel Gruevski <81828120+angel-gruevski@users.noreply.github.com> Date: Mon, 22 Apr 2024 08:28:48 +0200 Subject: [PATCH 2/2] Correct Documentation Correct Documentation Corrected a mistake in the documentation related to RequestCacheAwareFilter Closes gh-14855 --- docs/modules/ROOT/pages/servlet/architecture.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/architecture.adoc b/docs/modules/ROOT/pages/servlet/architecture.adoc index a2c7dc8f2ef..01139c110d9 100644 --- a/docs/modules/ROOT/pages/servlet/architecture.adoc +++ b/docs/modules/ROOT/pages/servlet/architecture.adoc @@ -449,7 +449,7 @@ In Spring Security this is done by saving the `HttpServletRequest` using a <> uses the `RequestCache` to get the saved `HttpServletRequest` after the user authenticates, while the `ExceptionTranslationFilter` uses the `RequestCache` to save the `HttpServletRequest` after it detects `AuthenticationException`, before redirecting the user to the login endpoint. By default, an `HttpSessionRequestCache` is used. The code below demonstrates how to customize the `RequestCache` implementation that is used to check the `HttpSession` for a saved request if the parameter named `continue` is present.