Skip to content

fix(workflowengine): reset cached file node for each new event - #66626

Open
lazerg wants to merge 1 commit into
nextcloud:masterfrom
lazerg:fix/issue-66618-workflow-file-node-reset
Open

lazerg wants to merge 1 commit into
nextcloud:masterfrom
lazerg:fix/issue-66618-workflow-file-node-reset

Conversation

@lazerg

@lazerg lazerg commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Summary

The File workflow entity is shared within a process, and getNode() keeps the node it looked up for a "Tag assigned" event. prepareRuleMatcher() never cleared it, so in cron every later event in the same run was checked against the first file. The cached node is now reset when a new event is prepared. Added a unit test with two tag assign events that fails without the change.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: lazerg <lazerg2@gmail.com>
@lazerg
lazerg requested a review from a team as a code owner November 15, 2026 02:05
@lazerg
lazerg requested review from icewind1991 and provokateurin and removed request for a team November 15, 2026 02:05

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

workflowengine: File entity reuses the node of the first "Tag assigned" event for all later events in the same process

1 participant