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

mederly noreply at github.com
Mon Mar 22 19:43:28 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: ec152f88aec48039db8c860a05246127b4cc6ba9
      https://github.com/Evolveum/midpoint/commit/ec152f88aec48039db8c860a05246127b4cc6ba9
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-03-22 (Mon, 22 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.




More information about the midPoint-svn mailing list