Actual getting of node activation status is not sufficient for case in MGNLACTIVATION-135.
Environment: versioning and workflow.
Setup: modify page 1, create activation task 1, modify page 2, create activation task 2, approve task 1, approve task 2.
Result: page stay in modified status.
Diagram of actual state:
Activation status is get from difference between modification date and activation date NodeTypes.java.
If activated version is not latest set modification date to activation date +1 ms (already there). If activated version is latest version set modification date to creation date of the latest version (added in PR).
page has correct activated status after second activation task
there can be 3rd modification after creation of 2nd activation task and this information is lost while 1 activation task set modification date to activation1 +1ms which results in incorrect activated status of page
I see only way how to solve it is change how we get/store node activaton status (3 state system property).