Skip to content

Nextcloud 27, Node::sendHooks() emits legacy events not catchable by the workflowengine #40033

Description

@rotdrop

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions