summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-08-21 17:36:01 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-08-25 08:44:19 +0000
commitace667bce791c42adffb160f2443e1a50938a7fe (patch)
treea020274104f22c41bbc148e5df1ec5cfc09bd749 /lib/public
parent02264a11a8aa6c5ab6eca596ef905438cdf38227 (diff)
downloadnextcloud-server-ace667bce791c42adffb160f2443e1a50938a7fe.tar.gz
nextcloud-server-ace667bce791c42adffb160f2443e1a50938a7fe.zip
fix possible leaking scope in Flow
- a configured flow can be brought into consideration, despite its event was not fired - it could either run through - or run into a RuntimeException and killing processing of valid flows Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/WorkflowEngine/IRuleMatcher.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/WorkflowEngine/IRuleMatcher.php b/lib/public/WorkflowEngine/IRuleMatcher.php
index cb52001a1a2..47ab3a25c3a 100644
--- a/lib/public/WorkflowEngine/IRuleMatcher.php
+++ b/lib/public/WorkflowEngine/IRuleMatcher.php
@@ -78,4 +78,14 @@ interface IRuleMatcher extends IFileCheck {
* @since 18.0.0
*/
public function getEntity(): IEntity;
+
+ /**
+ * this method can be called once to set the event name that is currently
+ * being processed. The workflow engine takes care of this usually, only an
+ * IComplexOperation might want to make use of it.
+ *
+ * @throws RuntimeException
+ * @since 20.0.0
+ */
+ public function setEventName(string $eventName): void;
}