[midPoint-git] [Evolveum/midpoint] 0784fb: Fix readonly option for get/search operations

mederly noreply at github.com
Tue Mar 23 07:33:42 CET 2021


  Branch: refs/heads/support-4.2
  Home:   https://github.com/Evolveum/midpoint
  Commit: 0784fb3a50cd719ddd3c0049f0b3ac8163cc4b69
      https://github.com/Evolveum/midpoint/commit/0784fb3a50cd719ddd3c0049f0b3ac8163cc4b69
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/GetOperationOptions.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/SelectorOptions.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelController.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ProvisioningServiceImpl.java

  Log Message:
  -----------
  Fix readonly option for get/search operations

Support for readonly option at the level of model service is tricky,
because returned objects are (almost) always modified e.g. because
of templates and security. So the fix consists of cloning such objects
(defeating the purpose of readonly option in the first place).

Also fixed readonly handling for provisioning.getObject call.

This resolves MID-6825.

(cherry picked from commit ec152f88aec48039db8c860a05246127b4cc6ba9)


  Commit: 2aac728431e2a1943a9bc66c7e27add3d22f28f1
      https://github.com/Evolveum/midpoint/commit/2aac728431e2a1943a9bc66c7e27add3d22f28f1
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java

  Log Message:
  -----------
  Fix handling of immutables in SchemaTransformer

Previous fix was wrong (too ambitious). This should bring things
back into order.

Related to MID-6825.

(cherry picked from commit a755912001f08fd99fb89add8f7da947ca3e67aa)


Compare: https://github.com/Evolveum/midpoint/compare/f7962d860b28...2aac728431e2


More information about the midPoint-svn mailing list