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

Image file reference does not update correctly when node moved, can lead to lost images

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.4.1
    • None
    • Not relevant

    Description

      Basically moving files does not correctly update the paths to the images. In some situations several objects may refer the same image files. When deleting one object, all objects are affected. This is tested on 4.4 and 4.3.0

      A similar problem seems to exist with rename, where there seems to be created a new image path, but without removing the original. This is only tested with 4.3.0. Steps for this is:
      1. Create article
      2. Rename article [two references now exists in table ezimagefile]
      3. Copy in place
      4. Rename copy to original name [this now shares one of the original references]
      5. Delete original [both references are removed, leaving the copy without necessary files]

      Steps to reproduce

      1. Create a new article, and add an image.

      2. Copy this article in place

      3. Move the original to a new location
      [The path to the image in table ezimagefile is not changed]

      4. Edit the copy, without changing its name
      [At this point, the copy will have same name as the original, and the path to the image will be updated accordingly. Both objects now uses the same image file.]

      5. Delete the original (or maybe also the copy)
      [Image files are deleted, leaving the copy without necessary files]

      Attachments

        Activity

          People

            unknown unknown
            atlep atlep
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: