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] Publishing records doesn't update the index queue #3718

Open
andreaskalis opened this issue Jul 5, 2023 · 1 comment · May be fixed by #3938
Open

[BUG] Publishing records doesn't update the index queue #3718

andreaskalis opened this issue Jul 5, 2023 · 1 comment · May be fixed by #3938

Comments

@andreaskalis
Copy link

Describe the bug
In typo3/public/typo3conf/ext/solr/Classes/IndexQueue/RecordMonitor.php, the method processCmdmap_postProcess (line 99) checks:
if ($command === 'version' && $value['action'] === 'swap') {
However, $value['action'] now seems to be 'publish'. Therefore, the VersionSwappedEvent is not fired and the record is not written into the index queue.

To Reproduce

  1. CREATE any record (e.g. type pages)
  2. Publish the record via the workspace (send to LIVE workspace)
  3. Note the record's uid
  4. Check the database for select * from tx_solr_indexqueue_item where item_uid=<UID>;
  5. The published record is not there
  6. Therefore, when executing the "Index Queue Worker" task in the scheduler, the record is not sent to the solr core.

Expected behavior
After publishing a new record, the record's uid is written into the table tx_solr_indexqueue_item.

Used versions (please complete the following information):

  • TYPO3 Version: 11.5.28
  • Browser: Firefox 114.0.2 (64-bit)
  • EXT:solr Version: 11.5.3
  • Used Apache Solr Version: 8.11.2
  • PHP Version: 7.4.3-apache-buster
  • MySQL Version: 5.7.31

Additional context
This seems connected to https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Breaking-92206-RemoveWorkspaceSwappingOfElements.html

@andreaskalis andreaskalis changed the title [BUG] Publishing records does not fire VersionSwappedEvent [BUG] Publishing records doesn't update the index queue Jul 6, 2023
@akoenig-clickstorm
Copy link

I can also reproduce the issue with TYPO3 11.5.30. With this small patch, it seems to work fine.
But I would like to see an official fix.
solr-bugfix-record-monitor-workspace.patch

spoonerWeb added a commit to spoonerWeb/ext-solr that referenced this issue Jan 24, 2024
@spoonerWeb spoonerWeb linked a pull request Jan 24, 2024 that will close this issue
dkd-kaehm pushed a commit to spoonerWeb/ext-solr that referenced this issue May 8, 2024
dkd-kaehm pushed a commit to spoonerWeb/ext-solr that referenced this issue Jul 5, 2024
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

Successfully merging a pull request may close this issue.

2 participants