Skip to content

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

@andreaskalis

Description

@andreaskalis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions