Project

General

Profile

Actions

Bug #93521

open

Available cookies from previous request are lost, after being redirected to an error page by the PageContentErrorHandler

Added by Kevin von Spiczak about 3 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2021-02-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
pending-close
Complexity:
Is Regression:
Sprint Focus:

Description

We noticed that our frontend users were not logged in anymore, when reaching e.g. a 404 page.
In our SiteConfiguration we defined a couple errorHandler's of type "Show Content from Page [Page]", which is the PageContentErrorHandler.
We use this for:
  • 404
  • 403
  • 401
  • 500
  • 503

I managed to fix this by passing the cookies from the previous request with the CookieJar class from Guzzle. I attached the patch that we use in our codebase as .diff file.


Files

keepAvailableCookiesInPageContentErrorHandlerRequest.diff (1.31 KB) keepAvailableCookiesInPageContentErrorHandlerRequest.diff keepAvailableCookiesInPageContentErrorHandlerRequest.diff Kevin von Spiczak, 2021-02-16 12:55
Actions

Also available in: Atom PDF