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

purge imagealias cache does not remove the aliases in xml attribute data_text

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2014.03, 5.3
    • 4.7.0, 5.0, 2014.01
    • Caching
    • None
    • OS : debian 7.4
      php 5.3.28-1~dotdeb
      mysql 5.5.35
      apache 2.2.22
      php-cli
      eZ Publish 4.7.0

    Description

      In legacy stack. In legacy root dir.
      When executing the command line :

      php bin/php/ezcache.php --clear-id=imagealias --purge
      

      then the variations image aliases are not removed from the corresponding XML stored in ezcontentobject_attribute.data_text. This is the "ezimage" datatype. The XML has the following format :

      <ezimage>
          <original attribute_id="256" .../>
          <alias name="reference" .../> <!-- not removed -->
          <alias name="small" .../> <!-- not removed -->
      </ezimage>
      

      The issue is located in eZImageAliasHandler::purgeAllAliases(), the DomNode::removeChild() call has not the expected result when a loop is done from a DOMNodeList object.
      See the DomNode::removeChild() documentation :
      http://php.net/manual/fr/domnode.removechild.php#90292

      Attachments

        Activity

          People

            Unassigned Unassigned
            arnaudchasseux arnaudchasseux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: