Bug #87845
closedcacheHash.excludedParameters will be ignore when Enhancer is called
100%
Description
We detected a problem: when system called PluginEnhancer he wil call exception in the \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::reqCHash function.
I've checked the code and find next:
PageArguments return all query parameters not from config as is and those parameters not compare with cacheHash.excludedParameters
We wrote next patch but don;;t sure is it correct solution:
public function reqCHash()
{
$skip = false;
if ($this->pageArguments !== null) {
/** @var \TYPO3\CMS\Frontend\Page\CacheHashCalculator $cacheHashCalculator */
$cacheHashCalculator = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\Page\CacheHashCalculator::class);
$relevantParameters = $cacheHashCalculator->getRelevantParameters(
http_build_query($this->pageArguments->getDynamicArguments(), '', '&', PHP_QUERY_RFC3986)
);
$skip = empty($relevantParameters);
}
...
P.S.: we detected this problem with fbclid
Updated by Susanne Moog over 5 years ago
- Category changed from Frontend to Site Handling, Site Sets & Routing
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Grigory Rechkin over 5 years ago
- Related to Bug #87981: 404 Page when Google Analytics Parameters (utm_source) in URL added
Updated by Grigory Rechkin over 5 years ago
- Related to Bug #88070: URL with extbase action and additional query string throws error using route enhancer added
Updated by Gerrit Code Review over 5 years ago
Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Grigory Rechkin over 5 years ago
- Related to Bug #88370: Extbase detail view URL call breaks by attaching params from [FE][cacheHash][excludedParameters] if page is uncached added
Updated by Josef Glatz over 5 years ago
- Target version set to Candidate for patchlevel
Updated by Gerrit Code Review over 5 years ago
Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review over 5 years ago
Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Helmut Hummel about 5 years ago
- Related to deleted (Bug #88070: URL with extbase action and additional query string throws error using route enhancer)
Updated by Helmut Hummel about 5 years ago
- Has duplicate Bug #88070: URL with extbase action and additional query string throws error using route enhancer added
Updated by Gerrit Code Review about 5 years ago
Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review about 5 years ago
Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review about 5 years ago
Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review about 5 years ago
Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review about 5 years ago
Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review about 5 years ago
Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Robert von Hackwitz about 5 years ago
Hi, same problem with default [FE][cacheHash][excludedParameters] = utm_source,utm_medium,pk_kwd,utm_source,utm_medium,utm_campaign,utm_term,utm_content,gclid,fbclid
and tx_news
Urls like https://sitename/read-news/news-path-segment?utm_source=xxx&utm_medium=twitter (as example) generates
error {"exception":"TYPO3\\CMS\\Core\\Error\\Http\\PageNotFoundException: Request parameters could not be validated (&cHash empty)
Patch doesn't works
Updated by Alexander Opitz about 5 years ago
Hi Robert,
do you overwrite this setting in your LocalConfiguration/AdditionalConfiguration? If yes, do you use a string or an array for that? I ask, cause your line (copied from install tool?) looks a bit confuse, it misses the L and pk_compaign parameter and utm_source/medium is doubled.
Updated by Robert von Hackwitz about 5 years ago
Hi Alexander, thank you for your kind response.
You're right: [FE][cacheHash][excludedParameters] is wrong.
I have restored default settings [FE][cacheHash][excludedParameters] = L,pk_campaign,pk_kwd,utm_source,utm_medium,utm_campaign,utm_term,utm_content,gclid,fbclid
but the problem persist
Updated by Alexander Opitz about 5 years ago
Hi Robert,
can you show the configuration how it is written in your LocalConfiguration.php?
Updated by Robert von Hackwitz about 5 years ago
Hi Alexander,
here's the configuration
'FE' => [
'cacheHash' => [
'excludedParameters' => [
'L',
'pk_campaign',
'pk_kwd',
'utm_source',
'utm_medium',
'utm_campaign',
'utm_term',
'utm_content',
'gclid',
'fbclid'
],
],
'debug' => true,
'disableNoCacheParameter' => true,
'loginSecurityLevel' => 'normal',
'pageNotFoundOnCHashError' => true,
'passwordHashing' => [
'className' => 'TYPO3\\CMS\\Core\\Crypto\\PasswordHashing\\Argon2iPasswordHash',
'options' => [],
],
],
Updated by Alexander Opitz about 5 years ago
Ok, looks fine :-)
So, you are using the given patch on a TYPO3 from git master?
Updated by Gerrit Code Review about 5 years ago
Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review about 5 years ago
Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60296
Updated by Gerrit Code Review about 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62221
Updated by Gerrit Code Review about 5 years ago
Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62221
Updated by Grigory Rechkin about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e94aefa00eb3ffebc15def25ccb7bb04ef989b50.
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed