-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TASK] Migrate cHash handling #2725
Comments
@3l73 @dkd-friedrich |
cHash handling ws adapted/disabled to fix generated links in TYPO3 9, as this adaptions lead to invalid links, e.g. facet links, in TYPO3 10 and Site configuration support is available since EXT:solr 10 there is no need for this adaptions. This commit removes the implemented removal of the cHash parameter, now the UriBuilder is used to build the link template. Resolves: TYPO3-Solr#2725
I've prepared a PR (#2972) to fix this issue, changes are based on the patch kindly provided by @DanielSiepmann. I just added a I will do some more tests in the next days and check the integration tests if necessary. |
cHash handling ws adapted/disabled to fix generated links in TYPO3 9, as this adaptions lead to invalid links, e.g. facet links, in TYPO3 10 and Site configuration support is available since EXT:solr 10 there is no need for this adaptions. This commit removes the implemented removal of the cHash parameter, now the UriBuilder is used to build the link template. Resolves: TYPO3-Solr#2725
cHash handling ws adapted/disabled to fix generated links in TYPO3 9, as this adaptions lead to invalid links, e.g. facet links, in TYPO3 10 and Site configuration support is available since EXT:solr 10 there is no need for this adaptions. This commit removes the implemented removal of the cHash parameter, now the UriBuilder is used to build the link template. Resolves: TYPO3-Solr#2725
cHash handling ws adapted/disabled to fix generated links in TYPO3 9, as this adaptions lead to invalid links, e.g. facet links, in TYPO3 10 and Site configuration support is available since EXT:solr 10 there is no need for this adaptions. This commit removes the implemented removal of the cHash parameter, now the UriBuilder is used to build the link template. Resolves: TYPO3-Solr#2725
EXT:solrs components like range facets can not be properly handled by cacheHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in flex form and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on flex form(Plugin -> Options -> Plugin Namespace) Migration: Needed only if other as default(tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" Fixes: TYPO3-Solr#2725
EXT:solrs components like range facets can not be properly handled by cacheHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in flex form and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on flex form(Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default(tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: TYPO3-Solr#2725
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: TYPO3-Solr#2725
Rafael and I have taken a closer look at the problem and have now chosen a slightly different path. Since no cHash calculation is possible for the links of the range facets generated via JavaScript and a more extensive caching was possible in the old variant, we decided to exclude the tx_solr parameters. Configuration options for namespaces and parameters is added and a default cHash configuration provided. |
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: #2725
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: #2725
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: #2725
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: #2725
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: #2725
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: #2725
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: #2725
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: #2725
EXT:solrs components like range facets can not be properly handled by cHash stack, because the amount of possible range-combinations is infinite, therefore they must be excluded from cacheHash calculation. This change makes it possible to exclude all EXT:solr parameters from cacheHash. To prevent misconfigurations, the new extension configuration setting "pluginNamespaces" was introduced, which is used in FlexForm and in TYPO3_CONF_VARS/FE/cacheHash/excludedParameters. This setting makes it impossible to chose invalid/unhandled EXT:solr plugin namespace on FlexForm (Plugin -> Options -> Plugin Namespace) ## Migrations: ### Plugin namespaces: Needed only if other as default (tx_solr) plugin namespace is used in instance. Add the used namespace[s] to `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces']` or via backend "Settings" -> "Extension Configuration" -> "solr" -> "A list of white listed plugin namespaces" ### Global q parameter Needed only if global "q" parameter without plugin namespace is used and wants to be included in cacheHash calculation. Set the setting `$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['solr']['pluginNamespaces'] = '1'` or enable it via backend "Settings" -> "Extension Configuration" -> "solr" -> "Include/Exclude global q parameter in/from cacheHash" Fixes: TYPO3-Solr#2725
Adds missing documentation for the following extension configuration settings: - pluginNamespaces - includeGlobalQParameterInCacheHash - useConfigurationMonitorTables - enableRouteEnhancer Relates: TYPO3-Solr#2725 Relates: TYPO3-Solr#3810
cHash handling was disabled with some code as it wasn't compatible, see #2211.
The mentioned "issue" or missing feature inside of TYPO3 is fixed since v10 LTS: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63062.
Therefore this workaround should be removed, and a proper example configuration should be provided instead.
Right now we apply the following patch to EXT:solr:
Also
getSubstitution()
could be removed.Possible example configuration:
The text was updated successfully, but these errors were encountered: