Skip to content
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

[BUG] Constants not filled during building queue via RecordMonitor + DataUpdateHandler #4022

Open
georgringer opened this issue May 6, 2024 · 1 comment

Comments

@georgringer
Copy link
Contributor

Got a multi site environment and having a settings file config/sites/at/settings.yaml with

redirects:
  autoCreateRedirects: false
pages:
  top: 43
  addresses-pid: 70,12

and a solr TypoScript

plugin.tx_solr {
    index {
        queue {
            address = 1
            address {
                additionalWhereClause = pid IN({$pages.addresses-pid})
...

works fine when filling the queue via backend module but not when saving the record in the backend (e.g. as editor) as this leads to a mysql exception.
Debugging it shows that building up the query via DataHandler > Domain/Index/Queue/RecordMonitor/Helper/RootPageResolver.php > ... > ConfigurationAwareRecordService > BackendUtility::getRecord that the constant is not substituted.

However during the same request this code is called multiple times and some calls got the constants replaced correctly but it seems one is missing a proper initialization.

To Reproduce

See above

Used versions (please complete the following information):

  • TYPO3 Version: 12.4.14
  • EXT:solr Version: 12.0.2
@lstephanws
Copy link

I have the same problem with :

  • TYPO3 11.5.37
  • EXT:solr Version: 11.5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants