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

Deleting the last version of the Content should not be allowed

    XMLWordPrintable

    Details

      Description

      If a draft is created and assigned with a remote key, this key will not be deleted if the draft is removed.

      any further tries to create another object with the same key will return an error.

      test case:
      1 - install the test command located here: https://gist.github.com/pbras/eba5c300eaa1553e3517
      this generates a draft folder under some given parent, removes it and shows a message at the end.
      2 - run the the same command twice (example: ezpublish/console test:genFolder myfolder SOMEKEY )

      3 - on second run, the error message shows:
      SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'SOMEKEY' for key 'ezcontentobject_remote_id'

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            paulo.bras-obsolete@ez.no Paulo Bras (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 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 hour, 20 minutes
                1h 20m