Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-28681 Legacy transaction handling issues
  3. EZP-29797

Legacy transaction handling: Discard draft (attribute delete)

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Customer request
    • Component/s: Legacy stack
    • Labels:
      None

      Description

      During discarding the draft, the attributes are deleted first and without the transaction (https://github.com/ezsystems/ezpublish-legacy-ee/blob/master/kernel/classes/ezcontentobjectversion.php#L923 and https://github.com/ezsystems/ezpublish-legacy-ee/blob/master/kernel/classes/ezcontentobjectversion.php#L927 ; `removeThis()` method call is not wrapped in the transaction either). If the request stops right before the transaction or the transaction rollbacks, then attributes will be deleted, but version with the draft will still be there, which in turn makes the draft no longer editable (if you try to edit this version, then no attributes are shown, so there is nothing to edit).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gunnstein.lye@ez.no Gunnstein Lye
            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 2 hours
                2h