Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.4.0
-
None
-
ezp 4.4
ezfind 2.3
Description
With DelayedIndexing the indexer will crash when an object is moved to trash before it is indexed. There are two parts to this bug:
- The actual code that crashes fails because the trashed object has no node. The code actually checks for this, but does the check after it has started using the node!
- Trashed objects should be removed from the indexing queue immediately when they are trashed, avoiding this situation altogether.
The attached patch solves the first half.
Steps to reproduce
Confirmed. Steps to reproduce:
- Set site.ini [SearchSettings] DelayedIndexing=enabled
- Publish an article
- Remove the article by moving it to the trash.
- Run eZ Finds search indexer: php runcronjobs.php ezfindexcontent
Attachments
Issue Links
- relates to
-
EZP-17445 setting object states - fatal error in extension/ezfind/search/plugins/ezsolr/ezsolr.php
- Closed