[midPoint-git] [Evolveum/midpoint] d3c774: Block provisioning changes for simulation tasks

mederly noreply at github.com
Thu Feb 2 18:56:24 CET 2023


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: d3c7746a0fc8e2e7b970d4950c9e36c2c23904df
      https://github.com/Evolveum/midpoint/commit/d3c7746a0fc8e2e7b970d4950c9e36c2c23904df
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ProvisioningContext.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/resourceobjects/ResourceObjectConverter.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/resourceobjects/TwoStateRealToSimulatedConverter.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/resources/ResourceManager.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ShadowAddOperation.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ShadowDeleteOperation.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ShadowModifyOperation.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ShadowRefreshHelper.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/AbstractBasicDummyTest.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/TestDummyConsistency.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/misc/TestResourceLifecycle.java
    M provisioning/ucf-api/src/main/java/com/evolveum/midpoint/provisioning/ucf/api/UcfExecutionContext.java
    M provisioning/ucf-api/src/main/java/com/evolveum/midpoint/provisioning/ucf/api/connectors/AbstractManualConnectorInstance.java
    M provisioning/ucf-impl-builtin/src/main/java/com/evolveum/midpoint/provisioning/ucf/impl/builtin/async/provisioning/AsyncProvisioningConnectorInstance.java
    M provisioning/ucf-impl-connid/src/main/java/com/evolveum/midpoint/provisioning/ucf/impl/connid/ConnectorInstanceConnIdImpl.java

  Log Message:
  -----------
  Block provisioning changes for simulation tasks

The provisioning will refuse to carry out any "state-changing"
operations, including script execution. This is done at various levels,
to avoid e.g. recording such operations as pending, with the danger
of later execution.

These are blocked at:

- shadows facade level (i.e. almost at provisioning API level),
- ResourceObjectConverter (i.e. when UCF API is called),
- implementations of ConnectorInstance (i.e. right within ucf-xxx-impl).

At all of these places, an exception is thrown, i.e. the caller is
responsible to avoid making such calls. A special case is the code that
deals with the shadow refresh, as it can be invoked quite autonomously.
(This may be reconsidered.)




More information about the midPoint-svn mailing list