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

Images for original object lost when editing copies

    Details

      Description

      When removing an archived version of a copy of an image object, the image file is removed from it's original location.

      Steps to reproduce:
      • Create and publish an image object
      • Edit the object once more, and publish without modifying the image.
        The files are stored in var/siteaccess/storage/images/ <original_path> /
      • Create a copy of the image object
        New files are created for the copy in var/siteaccess/storage/images/ <copy_path> /
      • On this copy, delete version 1 of the object (manage versions, check '1', remove selected)
        Note that the old version(s) may also be removed automatically when the maximum version history limit is reached.

      Looking at the first image path, the original file has been removed.

      Further details:

      When the object copy is created, only the ezimage attribute for the second version seems to be updated - version 1 still refers to the original object:

      version 2 (correct):

      <?xml version="1.0" encoding="utf-8"?>
      <ezimage serial_number="1" is_valid="1" filename="test_image.jpg" suffix="jpg" basename="test_image" 
      dirpath="var/ezflow_site/storage/images/copy/test_image/9994-1-eng-GB" ...
      

      version 1 (refers to the origin object):

      <?xml version="1.0" encoding="utf-8"?>
      <ezimage serial_number="1" is_valid="1" filename="test_image.jpg" suffix="jpg" basename="test_image" 
      dirpath="var/ezflow_site/storage/images/test_image/9994-1-eng-GB" ...
      

      Possible workaround:

      Modify [CopySettings]/VersionHandling in content.ini, from 'all' to 'last-published'.
      This way, there should be no reference of the original object's image in the new copy.

      [CopySettings]
      # Use either user-defined, last-published or all
      VersionHandling=last-published
      

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          4m 20s 1 eduardo.fernandes@ez.no 22/Jul/13 2:35 PM
          Confirmed Confirmed InputQ InputQ
          19h 6m 1 Gunnstein Lye 23/Jul/13 9:41 AM
          QA QA InputQ InputQ
          5d 2h 57m 1 Filipe Dobreira (Inactive) 30/Sep/13 4:11 PM
          InputQ InputQ Development Development
          27d 3h 45m 2 Bertrand Dunogier 14/Oct/13 11:42 AM
          Development Development Development Review Development Review
          68d 23h 8m 2 Bertrand Dunogier 07/Nov/13 11:54 AM
          Development Review Development Review Development Review done Development Review done
          5d 20h 7m 2 Bertrand Dunogier 07/Nov/13 11:54 AM
          Development Review done Development Review done Documentation Review done Documentation Review done
          58m 35s 2 Bertrand Dunogier 07/Nov/13 12:48 PM
          Documentation Review done Documentation Review done QA QA
          1h 14m 2 Joao Pingo (Inactive) 07/Nov/13 12:54 PM
          QA QA Closed Closed
          3d 23h 57m 1 Joao Pingo (Inactive) 11/Nov/13 12:52 PM
          Closed Closed Reopened Reopened
          2d 9h 50m 2 Petar Spanja (Inactive) 13/Nov/13 10:42 PM
          Reopened Reopened Closed Closed
          2s 2 Petar Spanja (Inactive) 13/Nov/13 10:42 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Eduardo Fernandes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 4 days, 4 hours, 19 minutes
                1w 4d 4h 19m