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

hide.php not triggering ezfind update

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: High High
    • None
    • 4.7.0
    • None
    • Ubuntu 12 OS
      PHP 5.4

    Description

      Steps to reproduce
      configured: edited hide.php with parameter for class/hide_date
      configured: DelayedIndexing enabled

      Before hide

      browse to object in front end and visible [Good]
      search for object using solr and object found and visible [Good]

      Alter hide Date field for scheduling

      edit content object's hide_date for 10 minutes from now
      send for publishing
      wait for 10 minutes

      Run hide.php and validate

      command line> run php runcronjobs.php frequent
      command line> hide debug shows object being hidden [Good]
      browse to object in front end and object is hidden [Good]
      search for object in front end and object is VISIBLE [BAD]
      click solr result link and object is hidden - shows solr is out of sync

      From what I can tell the functions involved are

      eZContentObjectTreeNode::hideSubTree()
      ezContentObjectTreeNode::updateAndStoreModified()
      eZContentObjectTreeNode::clearViewCacheForSubtree( $node, $modifyRootNode );
      and
      eZContentObject::clearCache();

      I don't see any code that queues the ezfind index in there.

      Please confirm that hide.php is DelayedIndexing safe

      I would expect something like this in the hide.php (pseudo code)
      $solrSearch->updateNodeVisibility( $node->attribute( 'node_id' ) );

      Attachments

        Activity

          People

            Unassigned Unassigned
            9eb34429-4ba7-4cec-9fd2-e83a1fdd6ac1@accounts.ibexa.co David Sayre
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: