[midPoint-git] [Evolveum/midpoint] 6257b1: Treat dangling references in expressions better
mederly
noreply at github.com
Mon Dec 16 16:41:43 CET 2024
Branch: refs/heads/support-4.8
Home: https://github.com/Evolveum/midpoint
Commit: 6257b17c5c68409c0d46103d78c94c6ce7adfc2c
https://github.com/Evolveum/midpoint/commit/6257b17c5c68409c0d46103d78c94c6ce7adfc2c
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2024-12-16 (Mon, 16 Dec 2024)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ObjectTypeUtil.java
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.
(cherry picked from commit e129da4fe229f8e2d937f191d9859bb1126b020e)
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