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

          Patrick Allaert (Inactive) logged work - 05/Aug/13 2:00 AM
          • Time Spent:
            30 minutes
             

            Starting analyzing the problem.

          Patrick Allaert (Inactive) logged work - 06/Aug/13 8:11 PM
          • Time Spent:
            3 hours, 24 minutes
             

            Analyzing the problem. Investigating possible solutions. Summarizing the problem in mail.

          Patrick Allaert (Inactive) logged work - 13/Aug/13 3:10 PM
          • Time Spent:
            10 minutes
             

            Mailing discussion

          Patrick Allaert (Inactive) logged work - 26/Aug/13 3:48 PM
          • Time Spent:
            30 minutes
             

            Investingating status & discussions

          Patrick Allaert (Inactive) logged work - 16/Sep/13 5:51 PM
          • Time Spent:
            7 hours
             

            Progressing on the issue

          Patrick Allaert (Inactive) logged work - 17/Sep/13 5:51 PM
          • Time Spent:
            1 day
             

            Progressing on the issue

          Patrick Allaert (Inactive) logged work - 18/Sep/13 5:51 PM
          • Time Spent:
            1 day
             

            Progressing on the issue

          Patrick Allaert (Inactive) logged work - 19/Sep/13 5:51 PM
          • Time Spent:
            5 hours, 45 minutes
             

            Finalizing issue and DB changes.

          Bertrand Dunogier logged work - 29/Oct/13 1:00 AM
          • Time Spent:
            5 hours
             

            .

          Bertrand Dunogier logged work - 30/Oct/13 1:00 AM
          • Time Spent:
            5 hours
             

            .

          Petar Spanja (Inactive) logged work - 30/Oct/13 11:42 PM
          • Time Spent:
            1 hour, 30 minutes
             

            review

          Bertrand Dunogier logged work - 31/Oct/13 1:00 AM
          • Time Spent:
            5 hours
             

            .

          Bertrand Dunogier logged work - 04/Nov/13 11:21 AM
          • Time Spent:
            6 hours
             

            .

          Bertrand Dunogier logged work - 05/Nov/13 11:20 AM
          • Time Spent:
            6 hours
             

            .

          Joao Pingo (Inactive) logged work - 07/Nov/13 9:46 AM - edited
          • Time Spent:
            1 hour, 30 minutes
             

            Testting

          Bertrand Dunogier logged work - 07/Nov/13 11:54 AM
          • Time Spent:
            4 hours
             
            <No comment>
          Joao Pingo (Inactive) logged work - 08/Nov/13 1:00 AM
          • Time Spent:
            3 hours
             

            Testing

          Joao Pingo (Inactive) logged work - 11/Nov/13 12:58 PM
          • Time Spent:
            4 hours
             

            Closed

            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