YottaDB / YDB

Mirrored from https://gitlab.com/YottaDB/DB/YDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZSTEP inside trigger should be ignored completely if TRIGGER_MOD restriction is in place

nars1 opened this issue · comments

Final Release Note

Description

The GT.M V6.3-003 release notes says the following : When TRIGGER_MOD is restricted, attempting to ZBREAK a trigger results in a RESTRICTEDOP error, and both ZBREAK and ZSTEP actions are ignored while executing code within a trigger. Previously a TRIGGER_MOD restriction did not imply these other restrictions. (GTM-8842)

We noticed that the bolded statement about ZSTEP actions ignored inside of a trigger is not completely true. If a ZSTEP is done inside trigger code, the ZSTEP action is not executed while inside the trigger (when TRIGGER_MOD restriction is in effect) but is executed immediately after exiting the trigger. A ZSTEP done inside a trigger should be completely ignored if TRIGGER_MOD restriction is in place and no action should be executed, even if in a deferred fashion, after exiting the trigger.

Draft Release Note

When TRIGGER_MOD is restricted, ZSTEP actions are completely ignored while executing code within a trigger. GT.M-8842 mentioned this as fixed in GT.M V6.3-003 but the fix seems to be incomplete in that the ZSTEP action was executed right after the trigger finished.