You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
CREATE any record (e.g. type pages)
Publish the record via the workspace (send to LIVE workspace)
Note the record's uid
Check the database for select * from tx_solr_indexqueue_item where item_uid=<UID>;
The published record is not there
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):
The text was updated successfully, but these errors were encountered:
andreaskalis
changed the title
[BUG] Publishing records does not fire VersionSwappedEvent
[BUG] Publishing records doesn't update the index queue
Jul 6, 2023
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
Describe the bug
In
typo3/public/typo3conf/ext/solr/Classes/IndexQueue/RecordMonitor.php
, the methodprocessCmdmap_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
select * from tx_solr_indexqueue_item where item_uid=<UID>;
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):
Additional context
This seems connected to https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Breaking-92206-RemoveWorkspaceSwappingOfElements.html
The text was updated successfully, but these errors were encountered: