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

Nasty bug in hide.php

    XMLWordPrintable

Details

    Description

      The bug can lead to the situation where all of your content gets hidden if you have
      RootNodeList[]=2

      The problem is in the line where nodes for hiding are fetched:

                       $nodeArray = $rootNode->subTree( $hiddenNodesParams );
      

      $hiddenNodesParams looks like this:

      $hiddenNodesParams = array(
          'LoadDataMap' => false,
          'Limit' => $limit,
          'Offset' => $offset,
          'SortBy' => array( array( 'published', true ) ) );
      

      Basically all nodes are fetched.

      Solution is to use $countParams instead.

      Steps to reproduce
      • create one class with hide_data
      • create an object with hide_data in the past somewhere in the content tree
      • configure content.ini with RootNodeList[]=2
      • execute cronjob

      Attachments

        Activity

          People

            unknown unknown
            2dc9bafd-01df-4ff7-9b25-f8b99b1a6990@accounts.ibexa.co Ivo Lukač
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: