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

Workflow crash with copied objects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.8.6, 3.9.0
    • Fix Version/s: 3.10.0alpha1, 3.8.9, 3.9.3
    • Labels:
      None
    • Environment:

      Operating System: Linux
      PHP Version: 4.4.4
      Database and version: Mysql 4.1
      Browser (and version): Any

      Description

      I have a workflow crash with objects undergoing a copy operation reach the collaboration screen.

      See the reproduction steps.

      The produced error is:

      Fatal error: Call to a member function on a non-object in /sites/ez/kernel/classes/ezcontentobjectversion.php on line 264

      This error was produced with 3.9.0.

      The link causing the crash is: http://site/admin/collaboration/item/full/2

      Whats happening here is that the collaboration template (design/standard/templates/content/version/view/plain.tpl) tries to get the node for the collab item ($version.temp_main_node).

      But the copy operation has not created the node yet, hence the crash. The copy has a node assingment but no node.

      Paul

      Steps to reproduce

      To reproduce this :

      1. Create an approval workflow, add a user as the approver and link the workflow to the content/publish/before trigger.

      2. Create a new 'file' in the content tree and publish.

      3. In the collaboration screen approve the new file and let the cronjob run to publish it.

      4. Goto the published 'file' and make a copy. Put the copy somewhere else and click the select button.

      5. Goto the collaboration screen and click the 'New file awaits your approval' link and eZ will crash:

      Steps 2 & 3 may not be necessary. It should fail with existing objects too.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rl Ruslan Lisnyk
                Reporter:
                paulf Paul Forsyth
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: