Defect #2994
openStatus - lastRun is reset to current time whenever the configuration of the scheduled task changes
0%
Description
Tested on 2.8.0
The parts "LRT status" and "Contract status" of the CzechIdMStatusNotificationTask depend on the last time when this task run - the time is taken from idm.sec.core.status.lastRun.
However, this property is reset to the current time whenever the configuration of the scheduled task is changed (e.g. added new recipients, changing task parameters).
Effectively, all changes, which happened between the last real run of the task and the change of the task configuration, are lost.
The problem is that the lastRun is set in the "init" method, which is evidently run at every change of configuration. Also, the comment "first run, default run - 10days" in the code doesn't work - the first run never contains anything.
Note: Changing the scheduled start doesn't affect lastRun, luckily.
No data to display