[midPoint-git] [Evolveum/midpoint] 1a95ee: Fix inbounds from deleted shadows

mederly noreply at github.com
Thu Oct 10 21:25:24 CEST 2024


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 1a95ee6a9cb223efc51aa206aeebb76afc7c5773
      https://github.com/Evolveum/midpoint/commit/1a95ee6a9cb223efc51aa206aeebb76afc7c5773
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-10-10 (Thu, 10 Oct 2024)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/FullInboundsProcessing.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ContextLoadOperation.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestInbounds.java
    A model/model-intest/src/test/resources/inbounds/resource-dummy-bidirectional.xml
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/prism/PrismObjectAsserter.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/consistency/TestConsistencyMechanism.java

  Log Message:
  -----------
  Fix inbounds from deleted shadows

The current behavior of inbound mappings related to shadows being
deleted or unlinked is currently like this:

1. When the shadow is explicitly deleted, inbounds mappings
are evaluated. The corresponding focus values are removed.

2. When the shadow is unassigned or unlinked, inbound mappings
are ignored. The corresponding focus values are kept.

(See newly-added TestInbounds.test400-430. It is maybe slightly
inconsistent, but this behavior is there for a long time.)

However, the current implementation broke down on resource
unavailability combined with shadow caching: the inbounds for case #2
above were executed right on the next clockwork click after
the deletion, resulting in focus values removal.
(The TestConsistencyMechanism.test610 uncovered this.)

This commit fixes the behavior by explicitly skipping inbounds for
contexts that were [attempted to be] deleted, even if the deletion
was not executed yet by the provisioning module.

Other changes: adapted parts of TestConsistencyMechanism (story)
to caching.

Makes TestConsistencyMechanism work with caching enabled.
Also, resolves MID-10109.


  Commit: de5ea3df3812a6a86cdaf0eb3fb9cac872280f1c
      https://github.com/Evolveum/midpoint/commit/de5ea3df3812a6a86cdaf0eb3fb9cac872280f1c
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-10-10 (Thu, 10 Oct 2024)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAttributeDefinition.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowDeltaComputerAbsolute.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestUnix.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestUnixTolerantAux.java

  Log Message:
  -----------
  Re-enable caching of selected types + other fixes

1. After resolving MID-10058 and MID-10059 we can remove
restrictions on the caching of binary data and big integers.

2. Fixed caching of byte arrays at the level of provisioning-impl.

3. Adapted TestUnix to caching.


  Commit: f9197864bc9c0051618da6eb76f57994be8a8b5c
      https://github.com/Evolveum/midpoint/commit/f9197864bc9c0051618da6eb76f57994be8a8b5c
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-10-10 (Thu, 10 Oct 2024)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/FullInboundsProcessing.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ContextLoadOperation.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestInbounds.java
    A model/model-intest/src/test/resources/inbounds/resource-dummy-bidirectional.xml
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/prism/PrismObjectAsserter.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/consistency/TestConsistencyMechanism.java

  Log Message:
  -----------
  Merge branch 'tmp/inbound-change'


  Commit: 8f9b0f35127b23278c76e12bac00d14f3bef7e74
      https://github.com/Evolveum/midpoint/commit/8f9b0f35127b23278c76e12bac00d14f3bef7e74
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-10-10 (Thu, 10 Oct 2024)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/duplication/DuplicationProcessHelper.java
    R gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/factory/duplicateresolver/AttributeMappingDuplicateResolver.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/factory/duplicateresolver/MappingDuplicateResolver.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/factory/panel/qname/DropDownChoicePanelFactory.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/factory/panel/qname/ResourceObjectFocusTypePanelFactory.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/AbstractObjectMainPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/FormWrapperValidator.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/abstractrole/component/AbstractRoleMemberPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/mark/component/ShadowMarkPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/self/credentials/ChangePasswordPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/prism/panel/vertical/form/VerticalFormDefaultContainerablePanel.html
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/prism/panel/vertical/form/VerticalFormDefaultContainerablePanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/prism/panel/vertical/form/VerticalFormPrismContainerPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/prism/panel/vertical/form/VerticalFormPrismContainerValuePanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/prism/wrapper/PrismReferenceValueWrapperImpl.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/validator/AssociationNameValidator.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/validator/AssociationRefAttributeValidator.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/validator/MappingNameValidator.java
    A gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/validator/ResourceObjectFocusTypeValidator.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/MidPointPrismContextFactory.java
    M model/authentication-impl/src/main/java/com/evolveum/midpoint/authentication/impl/factory/module/LdapModuleFactory.java
    M pom.xml
    M provisioning/ucf-impl-connid/src/test/resources/connector-ldap.xml
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/ReferenceIterativeSearch.java

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/master'


Compare: https://github.com/Evolveum/midpoint/compare/d14ba0141bd5...8f9b0f35127b

To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list