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

relationlist datatype metadata problem

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Medium Medium
    • None
    • None
    • Misc, Search
    • None
    • Operating System: all
      PHP Version: (please be specific, like '4.4.3' or '5.1.5') all
      Database and version: all
      Browser (and version): all

    Description

      relationlist datatype stores related object information that includes version number.

      the datatype's metadata function pulls by version, for example.

      $attributes = $object->contentObjectAttributes( true, $subObjectVersion, $language );
      

      this is used to index content in some search engines such as ezfind.

      Several consequences: attribute content is not accurately stored in ezfind, and if ezpublish has been set up to discard version after a certain number have built up, the version specifically identified by the relationlist datatype may no longer exist and search indexing fails completely.

      This can be fixed by using the most recent object by language:

      $attributes = $object->contentObjectAttributes( true, false, $language );
      
      Steps to reproduce

      Create a class with a relationlist attribute.
      Create an object (Object1) of that class. Use relationlist attribute to relate to another object (Object2)
      modify ezpublish so it only stores 1 version of published objects
      edit and publish a new version of Object2
      update search index - object relation will no longer be in solr db

      Attachments

        Activity

          People

            unknown unknown
            630accb7-ebc7-47a4-a912-60911f641030@accounts.ibexa.co David Broadfoot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: