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

Duplicating a content version results in an empty draft if maximum versions is reached



      Content versions in eZ Publish are listed by creation date, and we can see all existing versions of an object under /content/history/<object_id>

      We can also define a maximum number of versions for all content objects, or for each content object of a given content class.
      The issue is not really the number of versions we allow, but the way eZ Publish creates new version: it checks the number of existing versions, compares to the maximum allowed version number, and if the maximum version number has been reached already it removes the oldest one. And after that, it will proceed and create a new version as a draft.
      So far so good.
      This gives us a huge problem if we need to copy the oldest version and we already reached the maximum number of versions.
      In that case, the oldest version will be removed, and an empty draft will created, instead of a copy of the desired version.

      Steps to reproduce:

      1. Create one folder from the administration backed and send it to publish
      2. Edit the same folder 4 more times, in order to get 5 versions (which is the maximum by default)
      3. Click the "Manage versions" button
      4. Copy the oldest version of your folder

      You should get an empty draft, which is wrong.

        Issue Links


          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          3m 39s 1 ricardo.correia@ez.no 21/Mar/14 5:28 PM
          Confirmed Confirmed InputQ InputQ
          2d 16h 44m 1 André Rømcke 24/Mar/14 10:12 AM
          QA QA InputQ InputQ
          3h 33m 1 pedro.resende@ez.no 31/Mar/14 5:05 PM
          InputQ InputQ Development Development
          4d 10m 2 yannick.roger@ez.no 01/Apr/14 11:13 AM
          Development Development Development Review Development Review
          1d 4h 50m 2 yannick.roger@ez.no 01/Apr/14 6:34 PM
          Development Review Development Review Development Review done Development Review done
          3d 19h 1m 2 yannick.roger@ez.no 02/Apr/14 5:05 PM
          Development Review done Development Review done Documentation Review done Documentation Review done
          34s 2 yannick.roger@ez.no 02/Apr/14 5:05 PM
          Documentation Review done Documentation Review done QA QA
          2h 33m 2 Paulo Nunes 02/Apr/14 5:22 PM
          QA QA Closed Closed
          19h 16m 1 eduardo.fernandes@ez.no 03/Apr/14 12:38 PM


            • Assignee:
              Ricardo Correia (Inactive)
            • Votes:
              0 Vote for this issue
              8 Start watching this issue


              • Created:

                Time Tracking

                Original Estimate - Not Specified
                Not Specified
                Remaining Estimate - 0 minutes
                Time Spent - 1 day, 1 hour, 30 minutes
                1d 1h 30m