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

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.7.0, 5.0, 2014.01
    • Fix Version/s: 2014.03, 5.3
    • Component/s: Caching
    • Labels:
      None
    • Environment:

      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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              arnaudchasseux Arnaud Chasseux
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: