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

crash while indexing related objects

    XMLWordPrintable

Details

    Description

      In ezfSolrDocumentFieldObjectRelation::getCollectionData

      here we check for $subObjectID, but not for the existence of $subObject passed to the call getBaseList():

      ...
                          $subObjectID = $relationItem['contentobject_id'];
                          if ( !$subObjectID )
                              continue;
      
                          $returnList = array_merge( $this->getBaseList( eZContentObjectVersion::fetchVersion( $relationItem['contentobject_version'], $subObjectID ) ),
      
      

      more robust code:

                          $subObjectID = $relationItem['contentobject_id'];
                          if ( !$subObjectID )
                              continue;
      
                          $subObject = eZContentObjectVersion::fetchVersion( $relationItem['contentobject_version'], $subObjectID );
                          if ( !$subObject )
                              continue;
      
                          $returnList = array_merge( $this->getBaseList( $subObject ),
                                                     $returnList );
      

      Attachments

        Activity

          People

            pborgerm pborgerm
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: