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

Image disappears when removing the original of a copied content object

    Details

      Description

      In multilingual cluster, if you create a copy of a content object with ezimage as an attribute, and delete the original copy, the image from the copy will be lost.

      Steps to Reproduce

      1. Configure your NFS cluster and at least two languages (In this example, English and Portuguese).
      2. Create "article_001" in English in your root node
      3. Upload "image_001" to the image attribute
      4. Translate "article_001" in Portuguese, don't change any names or titles
      5. Copy "article_001" to "News" folder
      6. Remove "article_001" from root node, don't move it to trash.
      7. Open "News/article_001" in frontend

      The image is gone

      Obs.: The fix from EZP-21324 does not solve this problem

      1. trouble.xml
        12 kB
        Eduardo Fernandes

        Issue Links

          Activity

          Hide
          Eduardo Fernandes (Inactive) added a comment -

          See attached XML file for SQL and files related to troubleshooting

          Show
          Eduardo Fernandes (Inactive) added a comment - See attached XML file for SQL and files related to troubleshooting
          Hide
          Bertrand Dunogier added a comment -

          One interesting note: when following the described scenario:

          • only the original language's (eng-GB, added in version 1) images are removed
          • the eng-GB image attribute from the copy actually references the images from the original, not their own. The copy's images, referenced by the translation, aren't removed. They're just not used.
          Show
          Bertrand Dunogier added a comment - One interesting note: when following the described scenario: only the original language's (eng-GB, added in version 1) images are removed the eng-GB image attribute from the copy actually references the images from the original, not their own. The copy's images, referenced by the translation, aren't removed. They're just not used.
          Hide
          Bertrand Dunogier added a comment - - edited

          Got good news and bad news: fix/EZP-21324-copy_old_version_images, back from sept. 2013, fixes it.

          The good news is that it fixes it (since it ensured that no image was removed if a reference still existed.
          The bad news is that it's a big patch, and it was refused for the other fix because too complex.

          Show
          Bertrand Dunogier added a comment - - edited Got good news and bad news: fix/EZP-21324-copy_old_version_images , back from sept. 2013, fixes it. The good news is that it fixes it (since it ensured that no image was removed if a reference still existed. The bad news is that it's a big patch, and it was refused for the other fix because too complex.
          Show
          Bertrand Dunogier added a comment - Pull request merged to master: https://github.com/ezsystems/ezpublish-legacy/commit/b072583977be0fe9c2a46553db44e0ef22e0be27 .
          Hide
          Bertrand Dunogier added a comment - - edited

          @Doc: the changes are internal only, and probably require a quick BC note. The migration script must probably be documented though (iirc).

          Show
          Bertrand Dunogier added a comment - - edited @Doc: the changes are internal only, and probably require a quick BC note. The migration script must probably be documented though (iirc).
          Hide
          Bertrand Dunogier added a comment -

          Should be

          Show
          Bertrand Dunogier added a comment - Should be
          Hide
          Joao Pingo (Inactive) added a comment -

          Tested with available patch in 5.3, the issue is not present after patch

          Show
          Joao Pingo (Inactive) added a comment - Tested with available patch in 5.3, the issue is not present after patch
          Hide
          André Rømcke added a comment -

          @Doc: Missing change in http://doc.ez.no/eZ-Publish/User-manual/5.x/Daily-tasks/Removing-content/%28language%29/eng-GB to reflect that 5.x up until 5.3 is affected (so similar to change for 4.x versions).

          Show
          André Rømcke added a comment - @Doc: Missing change in http://doc.ez.no/eZ-Publish/User-manual/5.x/Daily-tasks/Removing-content/%28language%29/eng-GB to reflect that 5.x up until 5.3 is affected (so similar to change for 4.x versions).
          Hide
          Joao Pingo (Inactive) added a comment -

          QA Approved

          Show
          Joao Pingo (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Eduardo Fernandes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 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 day, 4 hours, 55 minutes
                1d 4h 55m