Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17932

Indexer crashes on trashed objects

    XMLWordPrintable

Details

    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

        Activity

          People

            jv@ez.no jv@ez.no
            gl gl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: