Dear all,
I have observed recently a behaviour in ACS when an update rule seems to be executed before the create (inbound) rule when moving a node. I was able to reproduce this on different repository versions (6.1.2 or 6.2.0) in combination with various share versions, MariaDB versions, odbc connector versions and even SDK (Maven) based development environments.
The whole case can be demonstrated by having two rules (create, update) defined for a single folder whereby each rule executes a oneliner javascript outputting "create" or "update" into the console. If I perform the "Move to" operation from web ui (or do the drag&drop) then in some cases the "update" console output precedes the "create" console output. This behaviour is consistent for each system run i.e. after some restarts the order is always wrong (regardless of how many times I move the file) and after some restarts the order is always as one would expect i.e. the "create" is outputted first.
We use docker-compose and as written above the behaviour is even observable in SDK (Maven) generated projects (4.0.0 or 4.1.0) and it seems to be independent of the (run.bat ) purge (i.e. sometimes a purged project starts and the order is wrong). I'm not sure if I have seen such behaviour in 5.2 (and related SDK projects).
I'm not sure if this is a bug, but I would expect that the create rule is always triggered and executed before an update rule for a node that is moved from one folder to another. Did someone experience a similar behaviour?
Kind regards,
Jan
PS.
The rule configuration (on one image for sake of simplicity):

And the scripts:
insert.js
logger.error("*** insert ***");
update.js
logger.error("*** update ***");