Issue Bug Rejected

#93607Problematic cHash handling by TYPO3

Aimeos no-lastname-given 02/28/21, 08:02 updated 04/09/25, 20:46

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

  1. Oliver Hader changed subject Problematic cHash handling by TPYO3 Problematic cHash handling by TYPO3 <span data-processor="relativetime" data-value="2022-11-12T09:42:33+00:00" > 11/12/22, 09:42 </span>

  2. Oliver Hader commented and changed status New Needs Feedback Tags url, chash, external server, redirect pending-close <span data-processor="relativetime" data-value="2022-11-12T09:51:20+00:00" > 11/12/22, 09:51 </span>

    cHash is added automatically, in case provided URL params cannot be mapped statically. The result can be adjusted by either

    Aspect mappers can be configured per page (with their enhancer config section), but the cacheHash.excludedParameters setting is applied globally.

  3. 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.

  4. Georg Ringer commented and changed status Needs Feedback Rejected <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