[midPoint-git] [Evolveum/midpoint] e129da: Treat dangling references in expressions better

mederly noreply at github.com
Mon Dec 16 16:37:52 CET 2024


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: e129da4fe229f8e2d937f191d9859bb1126b020e
      https://github.com/Evolveum/midpoint/commit/e129da4fe229f8e2d937f191d9859bb1126b020e
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/script/AbstractScriptEvaluator.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/script/jsr223/Jsr223ScriptEvaluator.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/script/velocity/VelocityScriptEvaluator.java
    M model/model-common/src/test/java/com/evolveum/midpoint/model/common/expression/script/AbstractScriptTest.java
    A model/model-common/src/test/resources/expression/groovy/expression-objectref-variables-explicit.xml
    M model/model-common/src/test/resources/expression/groovy/expression-objectref-variables.xml
    M model/model-common/src/test/resources/expression/javascript/expression-objectref-variables.xml
    M model/model-common/src/test/resources/expression/python/expression-objectref-variables.xml
    M model/model-common/src/test/resources/expression/velocity/expression-objectref-variables.xml
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/DirectoryFileObjectResolver.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/ExpressionUtil.java

  Log Message:
  -----------
  Treat dangling references in expressions better

When a reference was used in an expression in the default "object
variable mode", and its value was not resolvable, a fatal error
occurred. This was not correct according to the docs.

This commit fixes that. The null value is used instead. Note that
the behavior is still not quite consistent, as described in MID-10296.

This resolves MID-10162.



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