Details
Description
Behavior
When executing task with nonIterativeScripting and having specified a search query in order to find several targets for the script to be executed on, the script is only executed on first search result but as many times as the amount of total search results.
Potential source of problem
In com.evolveum.midpoint.model.impl.scripting.actions.ModifyExecutor:createDelta the oid of the delta is only set if the oid is empty which results in the fact, that all deltas created after that have the same oid.
Example task to reproduce behavior is attached.