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

Storing a draft with a bad object relation link should not create an entry in ezcontentobject_link

    Details

      Description

      If you create an ezobject:// link with a bad object ID and store the draft, you get properly warned that the object ID does not exist.
      However, from that point forward, an entry in ezcontentobject_link has been created that will never go away.

      (It will, if you discard the draft at this point. But if you remove the link and publish the draft, the bad entry stays in the table. Each new published object version adds a new bad entry. Removing the object (not move to trash) removes the bad entry. - Gunnstein)

      This will cause problems moving forward – you will get exceptions in the new stack if you use $repository->getContentService()->loadRelations().
      In those cases, unless you manually delete the entry in ezcontentobject_link, a content editor will never be able to fix the problem.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        2m 13s 1 eduardo.fernandes@ez.no 27/Oct/14 5:15 PM
        Confirmed Confirmed InputQ InputQ
        1d 15h 21m 1 Paulo Lopes (Inactive) 29/Oct/14 8:37 AM
        InputQ InputQ Development Development
        7h 1m 1 Gunnstein Lye 29/Oct/14 3:38 PM
        Development Development Development Review Development Review
        21h 25m 1 Gunnstein Lye 30/Oct/14 1:04 PM
        Development Review Development Review Development Review done Development Review done
        1h 42m 1 Gunnstein Lye 30/Oct/14 2:46 PM
        Development Review done Development Review done Documentation Review done Documentation Review done
        1h 26m 1 Gunnstein Lye 30/Oct/14 4:12 PM
        Documentation Review done Documentation Review done QA QA
        13m 42s 1 Paulo Nunes 30/Oct/14 4:26 PM
        QA QA Closed Closed
        21h 57m 1 Paulo Nunes 31/Oct/14 2:24 PM

          People

          • Assignee:
            Unassigned
            Reporter:
            Eduardo Fernandes (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            5 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 - 3 hours, 30 minutes
              3h 30m