[midPoint-git] [Evolveum/midpoint] c2dbfa: Fix delayed-deletion of already disabled shadows
mederly
noreply at github.com
Thu Jan 18 16:10:48 CET 2024
Branch: refs/heads/support-4.8
Home: https://github.com/Evolveum/midpoint
Commit: c2dbfa25354a93408f9d0c7379de045f03d1a3f6
https://github.com/Evolveum/midpoint/commit/c2dbfa25354a93408f9d0c7379de045f03d1a3f6
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2024-01-18 (Thu, 18 Jan 2024)
Changed paths:
M docs/concepts/activation/index.adoc
M infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ActivationUtil.java
M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensElementContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensUtil.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/ActivationProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/FocusActivationProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/mappings/predefinedActivationMapping/DelayedDeleteEvaluator.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestActivation.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/mapping/TestMapping.java
M release-notes.adoc
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/ShadowAsserter.java
M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestDelayedEnable.java
Log Message:
-----------
Fix delayed-deletion of already disabled shadows
If the disabled shadow was to be delayed-deleted, for example,
when transitioning focus from active to suspended to archived
state with disable-instead-of-delete and delayed-delete features
set, the mechanism did not work, because the disable reason was
not updated from #mapped to #deprovision on the suspended->archived
focus transition.
To fix this, the behavior of "disableTimestamp" and "disableReason"
in the shadow activation container had to be changed. Originally,
these properties were updated only if there was an actual change in
the administrative status from something to DISABLED. Since this
commit, both of these properties are updated even if the administrative
status is already DISABLED (and the reason changes).
The only real code changes are in processActivationMetadata(..) method
in ActivationProcessor. All others are tests, docs, and cosmetics.
Related to MID-9220.
(cherry picked from commit 6c8feb89109e762c83b43974663d25bfa7ad5ef3)
More information about the midPoint-svn
mailing list