#93607Problematic cHash handling by TYPO3
Description
Contrary to TYPO3 8, it’s not possible to disable the cHash on a per page basis any more in TYPO3 9/10 and if the cHash is wrong, TYPO3 returns an error page instead of serving the page content without creating a cache entry.
Problem:
When redirecting in a shop to external payment servers at the end of the checkout, the payment providers will redirect the customer back to the shop after they processed the payment. These redirects will contain additional parameters rendering the cHash invalid and TYPO3 returns an error page. Current workaround is to remove the cHash from the URLs manually with the regex to avoid errors.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 7
-
Oliver Hader changed category Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2022-11-08T19:29:15+00:00" > 11/08/22, 19:29 </span>
-
Oliver Hader changed subject
Problematic cHash handling by TPYO3Problematic cHash handling by TYPO3 <span data-processor="relativetime" data-value="2022-11-12T09:42:33+00:00" > 11/12/22, 09:42 </span> -
Oliver Hader commented and changed status
NewNeeds Feedback Tagsurl, chash, external server, redirectpending-close <span data-processor="relativetime" data-value="2022-11-12T09:51:20+00:00" > 11/12/22, 09:51 </span> -
Aimeos no-lastname-given commented and changed Tags
pending-close<span data-processor="relativetime" data-value="2022-11-12T18:15:23+00:00" > 11/12/22, 18:15 </span>Both doesn’t help because the parameters sent by the various payment gateways are not known upfront.
Neither aspect mappers nor excludes does help in that case, only entirely removing the cHash from the URL that is used by the payment gateways to redirect the customer back to the TYPO3 page. -
Aimeos no-lastname-given changed assigned to Oliver Hader <span data-processor="relativetime" data-value="2022-11-12T18:17:08+00:00" > 11/12/22, 18:17 </span>
-
Benni Mack changed Sprint Focus
On Location Sprint<span data-processor="relativetime" data-value="2023-08-02T13:05:20+00:00" > 08/02/23, 13:05 </span> -
Georg Ringer commented and changed status
Needs FeedbackRejected <span data-processor="relativetime" data-value="2025-04-09T20:46:56+00:00" > 04/09/25, 20:46 </span>Hey,
going through old issues and found that one. I propose using one of the solutions provided by Oliver Hader or using a custom middleware
cHashis added automatically, in case provided URL params cannot be mapped statically. The result can be adjusted by eithercHashcalculation, see https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/CachingFramework/Index.html#confval-excludedParametersAspect mappers can be configured per page (with their enhancer config section), but the
cacheHash.excludedParameterssetting is applied globally.