These two lines
|
use OCP\EventDispatcher\Event; |
|
if ($event instanceof Event) { |
together with the current state in v27 here:
|
use Symfony\Component\EventDispatcher\GenericEvent; |
|
$dispatcher->dispatch('\OCP\Files::' . $hook, new GenericEvent($args)); |
mean that in version 27 the workflowengine is completely broken w.r.t. to any file-system related event. Apparently this is fixed on the master by PR #39605. So maybe there should be a backport? Or change the workflow engine in v27 to accept legacy events, which probably is easier.
These two lines
server/apps/workflowengine/lib/AppInfo/Application.php
Line 39 in 480d2c2
server/apps/workflowengine/lib/AppInfo/Application.php
Line 102 in 480d2c2
together with the current state in v27 here:
server/lib/private/Files/Node/Node.php
Line 43 in 480d2c2
server/lib/private/Files/Node/Node.php
Line 135 in 480d2c2
mean that in version 27 the workflowengine is completely broken w.r.t. to any file-system related event. Apparently this is fixed on the master by PR #39605. So maybe there should be a backport? Or change the workflow engine in v27 to accept legacy events, which probably is easier.