[midPoint-git] [Evolveum/midpoint] a55cbe: Fix change of immutable object caused by preview
KaterynaHonchar
noreply at github.com
Fri Jan 10 16:58:55 CET 2025
Branch: refs/heads/schema-context-annotations
Home: https://github.com/Evolveum/midpoint
Commit: a55cbe43936a67ff4fa2f49559e2dcfd96f19f87
https://github.com/Evolveum/midpoint/commit/a55cbe43936a67ff4fa2f49559e2dcfd96f19f87
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2025-01-07 (Tue, 07 Jan 2025)
Changed paths:
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/transformer/DataAccessProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/AbstractInitializedSecurityTest.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityBasic.java
A model/model-intest/src/test/resources/security/role-user-add-read-some.xml
Log Message:
-----------
Fix change of immutable object caused by preview
**What**
Fix an error caused by change of immutable object (in this case
immutable delta), which happens during preview of "create role" changes.
But it could potentially happen during any "create" operation.
**Notes**
This error could be fixed in various ways. Some of considered solutions:
- Add `modifyEachObject` and `modifyEachDelta` methods to `ElementState`
and to `LensElementContext`. These methods would allow to modify
internal deltas/objects by internally cloning them if they are
immutable.
- Cloning whole `LensContext` before passing it to the
`SchemaTransformer` for application of security constraints.
- Cloning `LensFocusContext` and `LensProjectionContext` before passing
them to the `DataAccessProcessor`.
It's important to say, that **none** from mentioned solutions is very
good. So I simply chose the one which I see as a lesser evil, the third
one. Here are my arguments:
**Add `modifyEach*` methods**
This solution seemed to me as the most compelling. However, during more
research I have understood, that deltas and objects in the
`ElementState` should not be changed "just like that" without a big
amount of care. Changes of already immutable objects/deltas could cause
that whole `ElementState` would be invalid. It could be a problem
especially, if it was changed before or during clockwork execution. Even
though there already are methods, which allows to modify
primary/secondary deltas, they are commented as a "dangerous". I don't
think, it would be wise to add yet another set of methods, which
somebody could (what means "will") misuse.
**Cloning whole `LensContext`**
To be honest I haven't think about this approach very much. It simply
seems to me as a too big chunk of data to clone without a reason.
**Clonging `LensFocusContext` and `LensProjectionContext`
This method seems to me as a compromise between cloning too much data
and modifying potentially "living" state. It also does not require
addition of any new "modification" methods to the `ElementState` class
which in turn reduce the risk of misuse.
**Proper solution**
Based on my current understanding, the best solution, would be to limit
data which are needed for a preview. If I understand it correctly, the
data which are necessary to display a preview are just deltas. So I
think, the proper solution would be to sent just those to the UI. Of
course if more data are needed, than those could be sent too, but
definitely not whole `LensContext`.
If data sent to UI would be limited, we could simply apply the security
constraints just to those deltas and not bother with whole `LensContext`
which would be "dropped" anyway (since it's just preview).
**Fixes**: MID-10204
Commit: df020860dce1c9522ae016fc1bba0c70cbee0ab0
https://github.com/Evolveum/midpoint/commit/df020860dce1c9522ae016fc1bba0c70cbee0ab0
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-07 (Tue, 07 Jan 2025)
Changed paths:
M docs/security/credentials/initial-password-management-discussion.adoc
R docs/security/credentials/password-reset/configuration.adoc
M docs/security/credentials/password-reset/index.adoc
R docs/security/credentials/password-reset/login-panel.png
A docs/security/credentials/password-reset/password-reset-link.png
A docs/security/credentials/password-reset/process-overview.adoc
Log Message:
-----------
password reset docs updated
Commit: 4f837c4a9c59d8c5e3052fbfc79b97eec9200fac
https://github.com/Evolveum/midpoint/commit/4f837c4a9c59d8c5e3052fbfc79b97eec9200fac
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-07 (Tue, 07 Jan 2025)
Changed paths:
M docs/security/credentials/password-reset/index.adoc
Log Message:
-----------
added status to the doc page
Commit: 101b5e7851b82561add455310b70b937f8d5283f
https://github.com/Evolveum/midpoint/commit/101b5e7851b82561add455310b70b937f8d5283f
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-07 (Tue, 07 Jan 2025)
Changed paths:
M docs/security/credentials/initial-password-management-discussion.adoc
Log Message:
-----------
fixing the broken link
Commit: 932398ac3b516c9006efa19d6f9a180755b83e00
https://github.com/Evolveum/midpoint/commit/932398ac3b516c9006efa19d6f9a180755b83e00
Author: Viliam Repan <vilo.repan at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/util/FocusListInlineMenuHelper.java
Log Message:
-----------
MID-10317 Missing message when user disable fails. Also fixed enable/reconcile/delete messages as well
Commit: 2cd3d5f47d7321480db4041181a71b3b08fba25b
https://github.com/Evolveum/midpoint/commit/2cd3d5f47d7321480db4041181a71b3b08fba25b
Author: Viliam Repan <vilo.repan at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/util/FocusListInlineMenuHelper.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/users/PageUsers.java
Log Message:
-----------
MID-10317 MID-10139 fixed keys localization, removed test code
Commit: 8bbf035ed00666d15dcec4fbf3040344cde6902b
https://github.com/Evolveum/midpoint/commit/8bbf035ed00666d15dcec4fbf3040344cde6902b
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M docs/roles-policies/certification/tutorial/index.adoc
Log Message:
-----------
access certification guide update
Commit: 1568f02294dfd8c35b149fee0318240b03dc9d1f
https://github.com/Evolveum/midpoint/commit/1568f02294dfd8c35b149fee0318240b03dc9d1f
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/util/FocusListInlineMenuHelper.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/users/PageUsers.java
Log Message:
-----------
Merge branch 'master' of https://github.com/Evolveum/midpoint
Commit: 5167e33ab6352ebdbde06a782bf6a99f8ee7dbef
https://github.com/Evolveum/midpoint/commit/5167e33ab6352ebdbde06a782bf6a99f8ee7dbef
Author: Viliam Repan <vilo.repan at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M pom.xml
Log Message:
-----------
MID-10276 upgraded spring boot to 3.4.1 (another attempt) while hibernate stays on 6.5.3 and oracle driver ojdbc11/21.9.0.0
Commit: abb4b22ab616f6c85fd47dcd97a22a96b3d08aca
https://github.com/Evolveum/midpoint/commit/abb4b22ab616f6c85fd47dcd97a22a96b3d08aca
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java
Log Message:
-----------
Remove unnecessary call to get read constraints
**What**
Read constraints needed for securing "eveluated assignments" are
"calculated" from the focus object. Same constraints are also needed to
securing the focus itself. Before this change, constraints were
"calculated" two times with the same focus object. Now it's calculated
only once.
**Why**
Even though this version is a bit less "clean" (maybe subjective), the
benefit is in reducing excesive logging, which is generated by the
constraints "calculation".
Commit: 2dc0313ebb2966f35413c3c8598ec324dc36de54
https://github.com/Evolveum/midpoint/commit/2dc0313ebb2966f35413c3c8598ec324dc36de54
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/password/PasswordPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/password/ProtectedStringPanel.java
Log Message:
-----------
fixing 10129 : hided password strength bar for the protected string panel
Commit: 781058072feab36be0a2698964703d67ce073788
https://github.com/Evolveum/midpoint/commit/781058072feab36be0a2698964703d67ce073788
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M pom.xml
Log Message:
-----------
Merge branch 'master' of https://github.com/Evolveum/midpoint
Commit: a414ea691fee229df8a2f54988ab8d9f2280640d
https://github.com/Evolveum/midpoint/commit/a414ea691fee229df8a2f54988ab8d9f2280640d
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M release-notes.adoc
Log Message:
-----------
Add fix of MID-1024 to release notes
Commit: 7874e995d1eb9d3f52a3e5e4b93ab43292faf354
https://github.com/Evolveum/midpoint/commit/7874e995d1eb9d3f52a3e5e4b93ab43292faf354
Author: mederly <mederly at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/transformer/DataAccessProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/AbstractInitializedSecurityTest.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityBasic.java
A model/model-intest/src/test/resources/security/role-user-add-read-some.xml
M release-notes.adoc
Log Message:
-----------
Merge pull request #246 from Evolveum/bugfix/10204
Fix change of immutable object caused by preview
Commit: 6731232f4c290a59a7f3cbabfebe5d19e78f77a0
https://github.com/Evolveum/midpoint/commit/6731232f4c290a59a7f3cbabfebe5d19e78f77a0
Author: Viliam Repan <vilo.repan at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/action/worker/ImportProducerWorker.java
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/util/NinjaUtils.java
A tools/ninja/src/test/java/com/evolveum/midpoint/ninja/BaseUpgradeTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/ImportRepositoryTest.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/BaseUpgradeTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/CreateDatabaseTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/UpgradeTest.java
M tools/ninja/testng-unit.xml
Log Message:
-----------
MID-10320 fixed issue of export/import with -z/--zip. Also fixed and enabled a bunch of ninja tests.
Commit: 5d4946846239dc16fb34cc15b3878e4cdca8e5be
https://github.com/Evolveum/midpoint/commit/5d4946846239dc16fb34cc15b3878e4cdca8e5be
Author: Viliam Repan <vilo.repan at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/password/PasswordPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/password/ProtectedStringPanel.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/transformer/DataAccessProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/AbstractInitializedSecurityTest.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityBasic.java
A model/model-intest/src/test/resources/security/role-user-add-read-some.xml
M release-notes.adoc
Log Message:
-----------
Merge remote-tracking branch 'origin/master'
Commit: 4b43a13c33727410f3933d67c201a35cd16ee42c
https://github.com/Evolveum/midpoint/commit/4b43a13c33727410f3933d67c201a35cd16ee42c
Author: Viliam Repan <vilo.repan at evolveum.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/JenkinsTest.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/TestMain.java
M tools/ninja/testng-unit.xml
Log Message:
-----------
removed dead code, enabled more ninja tests
Commit: 31fe3188766bb05808cdb60220ea5ff3409095e3
https://github.com/Evolveum/midpoint/commit/31fe3188766bb05808cdb60220ea5ff3409095e3
Author: Viliam Repan <vilo.repan at evolveum.com>
Date: 2025-01-09 (Thu, 09 Jan 2025)
Changed paths:
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/action/DeleteRepositoryAction.java
Log Message:
-----------
fixed delete by oid in ninja, failing for generic repos , query used ownerId() instead of id() in filter
Commit: 37bd03b66e8990086d0f777cd48fd7f194fa1947
https://github.com/Evolveum/midpoint/commit/37bd03b66e8990086d0f777cd48fd7f194fa1947
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-01-09 (Thu, 09 Jan 2025)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAttributeDefinitionImpl.java
M infra/schema/src/main/resources/xml/ns/public/common/common-provisioning-3.xsd
Log Message:
-----------
Simplify volatility schema (temporarily)
In order to simplify the GUI, this commit reduces the cardinality
of inbound/outbound dependencies (in attribute volatility spec)
from 0..N to 0..1. The idea is that in current version, the content
of one item is just a single multi-valued property, so the whole
item can be safely single-valued.
As soon as the ShadowItemDependencyType get more content (like
source/target paths, as planned), the inbound/outbound items will
be returned to multi-valued state. It will be a compatible change then.
Commit: 964e5306bb9664758f9d88487e624b6942e4e7c7
https://github.com/Evolveum/midpoint/commit/964e5306bb9664758f9d88487e624b6942e4e7c7
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-09 (Thu, 09 Jan 2025)
Changed paths:
M config/initial-objects/archetype/029-archetype-application.xml
M repo/system-init/src/main/resources/initial-objects/archetype/029-archetype-application.xml
Log Message:
-----------
fix for #10277 err 500 when creating new serviceType application with manager
Commit: dbf75d78f0fb2b29810360b4687f3457ae3ae540
https://github.com/Evolveum/midpoint/commit/dbf75d78f0fb2b29810360b4687f3457ae3ae540
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-09 (Thu, 09 Jan 2025)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAttributeDefinitionImpl.java
M infra/schema/src/main/resources/xml/ns/public/common/common-provisioning-3.xsd
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/transformer/DataAccessProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/AbstractInitializedSecurityTest.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityBasic.java
A model/model-intest/src/test/resources/security/role-user-add-read-some.xml
M release-notes.adoc
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/action/DeleteRepositoryAction.java
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/action/worker/ImportProducerWorker.java
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/util/NinjaUtils.java
A tools/ninja/src/test/java/com/evolveum/midpoint/ninja/BaseUpgradeTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/ImportRepositoryTest.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/JenkinsTest.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/TestMain.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/BaseUpgradeTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/CreateDatabaseTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/UpgradeTest.java
M tools/ninja/testng-unit.xml
Log Message:
-----------
Merge branch 'master' of https://github.com/Evolveum/midpoint
Commit: 2e5a03631dda93f8d0a06f5bbd5a493aa2d56a72
https://github.com/Evolveum/midpoint/commit/2e5a03631dda93f8d0a06f5bbd5a493aa2d56a72
Author: Viliam Repan <vilo.repan at evolveum.com>
Date: 2025-01-09 (Thu, 09 Jan 2025)
Changed paths:
A repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerInitializer.java
M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerQuartzImpl.java
Log Message:
-----------
attempt to untangle task quartz impl spring beans initialization to fix tests.
Commit: d3a673a5c4a51de1baafee89b03e2c2eef78ddfb
https://github.com/Evolveum/midpoint/commit/d3a673a5c4a51de1baafee89b03e2c2eef78ddfb
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/self/credentials/PropagatePasswordPanel.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/AbstractResourceObjectDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/CompositeObjectDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectClassDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectDefinitionUtil.java
R infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectInboundDefinition.java
A infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectInboundProcessingDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAssociationDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAssociationDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAttributeDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowItemDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowLikeValue.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/deleg/ResourceObjectDefinitionDelegator.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/CorrelatorsDefinitionUtil.java
M infra/schema/src/main/resources/xml/ns/public/common/common-provisioning-3.xsd
R model/model-api/src/main/java/com/evolveum/midpoint/model/api/InboundSourceData.java
M model/model-api/src/main/java/com/evolveum/midpoint/model/api/context/ModelContext.java
M model/model-common/src/test/java/com/evolveum/midpoint/model/common/mapping/TestMappingMetadata.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ResourceObjectProcessingContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/AssociationConstructionExpressionEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/AssociationSynchronizationExpressionEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensElementContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensProjectionContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensUtil.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/AssociationMapper.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/AssociationValuesTripleComputation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/credentials/ProjectionCredentialsProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/DefaultSingleShadowInboundsProcessingContextImpl.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/FullInboundsProcessing.java
A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/InboundSourceData.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/SingleShadowInboundsProcessing.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/SingleShadowInboundsProcessingContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/FullInboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/InboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/LimitedInboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/MappedSourceItem.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/MappedSourceItems.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/SingleShadowInboundsPreparation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ProjectionUpdateOperation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/PolicyRuleEnforcer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/PreMappingsEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/SynchronizationContext.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/AbstractModelImplementationIntegrationTest.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/lens/TestProjector.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestPreviewChanges.java
M testing/story/src/test/resources/associations-real/resource-ldap.xml
Log Message:
-----------
Fix handling old vs current object for inbounds
Source triples (item-delta-item) for inbound mappings were not
prepared precisely enough: (1) sync deltas and computed ones were used
in the same way, even if they have different nature; (2) "old" and
"current" object states were not used appropriately either.
This commit brings some order to this area. Now we strictly distinguish
between sync deltas (that occur even before the old state of the object)
and the ones computed by the projector, which stand between old and
current object state. We also more prudently distinguish between
these two states.
Also, some leftovers from 4.9 development (both in schema and in code)
were removed, parts of the code were simplified and documented.
This resolves MID-9960.
Commit: 6f0ee8d1c90a1dca90e4757b24b30bfb01f3fd3e
https://github.com/Evolveum/midpoint/commit/6f0ee8d1c90a1dca90e4757b24b30bfb01f3fd3e
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M config/initial-objects/archetype/029-archetype-application.xml
M docs/roles-policies/certification/tutorial/index.adoc
M docs/security/credentials/initial-password-management-discussion.adoc
R docs/security/credentials/password-reset/configuration.adoc
M docs/security/credentials/password-reset/index.adoc
R docs/security/credentials/password-reset/login-panel.png
A docs/security/credentials/password-reset/password-reset-link.png
A docs/security/credentials/password-reset/process-overview.adoc
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/password/PasswordPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/password/ProtectedStringPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/util/FocusListInlineMenuHelper.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/users/PageUsers.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAttributeDefinitionImpl.java
M infra/schema/src/main/resources/xml/ns/public/common/common-provisioning-3.xsd
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/transformer/DataAccessProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/AbstractInitializedSecurityTest.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityBasic.java
A model/model-intest/src/test/resources/security/role-user-add-read-some.xml
M pom.xml
M release-notes.adoc
M repo/system-init/src/main/resources/initial-objects/archetype/029-archetype-application.xml
A repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerInitializer.java
M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerQuartzImpl.java
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/action/DeleteRepositoryAction.java
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/action/worker/ImportProducerWorker.java
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/util/NinjaUtils.java
A tools/ninja/src/test/java/com/evolveum/midpoint/ninja/BaseUpgradeTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/ImportRepositoryTest.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/JenkinsTest.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/TestMain.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/BaseUpgradeTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/CreateDatabaseTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/UpgradeTest.java
M tools/ninja/testng-unit.xml
Log Message:
-----------
Merge remote-tracking branch 'origin/master'
Commit: 5ffd4ee70886c7786498c6a02f3cee99ec537467
https://github.com/Evolveum/midpoint/commit/5ffd4ee70886c7786498c6a02f3cee99ec537467
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
A docs/resources/resource-configuration/business.adoc
M docs/resources/resource-configuration/index.adoc
M docs/schema/object-references/index.adoc
Log Message:
-----------
Update resource configuration docs
Related to MID-10176.
Commit: d4ecf6cceea9d1c983db710acc4587f935e55e42
https://github.com/Evolveum/midpoint/commit/d4ecf6cceea9d1c983db710acc4587f935e55e42
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/password/PasswordPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/self/credentials/ChangePasswordPanel.java
Log Message:
-----------
fix for #10316 500 error occurs during self-password update
Commit: 5641a14df51b0ec483e466074d03cb4a462d56e9
https://github.com/Evolveum/midpoint/commit/5641a14df51b0ec483e466074d03cb4a462d56e9
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
A docs/resources/resource-configuration/business.adoc
M docs/resources/resource-configuration/index.adoc
M docs/schema/object-references/index.adoc
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/self/credentials/PropagatePasswordPanel.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/AbstractResourceObjectDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/CompositeObjectDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectClassDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectDefinitionUtil.java
R infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectInboundDefinition.java
A infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectInboundProcessingDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAssociationDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAssociationDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAttributeDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowItemDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowLikeValue.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/deleg/ResourceObjectDefinitionDelegator.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/CorrelatorsDefinitionUtil.java
M infra/schema/src/main/resources/xml/ns/public/common/common-provisioning-3.xsd
R model/model-api/src/main/java/com/evolveum/midpoint/model/api/InboundSourceData.java
M model/model-api/src/main/java/com/evolveum/midpoint/model/api/context/ModelContext.java
M model/model-common/src/test/java/com/evolveum/midpoint/model/common/mapping/TestMappingMetadata.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ResourceObjectProcessingContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/AssociationConstructionExpressionEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/AssociationSynchronizationExpressionEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensElementContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensProjectionContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensUtil.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/AssociationMapper.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/AssociationValuesTripleComputation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/credentials/ProjectionCredentialsProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/DefaultSingleShadowInboundsProcessingContextImpl.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/FullInboundsProcessing.java
A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/InboundSourceData.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/SingleShadowInboundsProcessing.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/SingleShadowInboundsProcessingContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/FullInboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/InboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/LimitedInboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/MappedSourceItem.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/MappedSourceItems.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/SingleShadowInboundsPreparation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ProjectionUpdateOperation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/PolicyRuleEnforcer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/PreMappingsEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/SynchronizationContext.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/AbstractModelImplementationIntegrationTest.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/lens/TestProjector.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestPreviewChanges.java
A repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerInitializer.java
M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerQuartzImpl.java
M testing/story/src/test/resources/associations-real/resource-ldap.xml
Log Message:
-----------
Merge branch 'master' of https://github.com/Evolveum/midpoint
Commit: 05e89ef2f88eeecd4633e182d07611c540ec5b59
https://github.com/Evolveum/midpoint/commit/05e89ef2f88eeecd4633e182d07611c540ec5b59
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M config/initial-objects/archetype/029-archetype-application.xml
A docs/resources/resource-configuration/business.adoc
M docs/resources/resource-configuration/index.adoc
M docs/roles-policies/certification/tutorial/index.adoc
M docs/schema/object-references/index.adoc
M docs/security/credentials/initial-password-management-discussion.adoc
R docs/security/credentials/password-reset/configuration.adoc
M docs/security/credentials/password-reset/index.adoc
R docs/security/credentials/password-reset/login-panel.png
A docs/security/credentials/password-reset/password-reset-link.png
A docs/security/credentials/password-reset/process-overview.adoc
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/password/PasswordPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/password/ProtectedStringPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/self/credentials/ChangePasswordPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/self/credentials/PropagatePasswordPanel.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/util/FocusListInlineMenuHelper.java
M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/users/PageUsers.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/AbstractResourceObjectDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/CompositeObjectDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectClassDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectDefinitionUtil.java
R infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectInboundDefinition.java
A infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectInboundProcessingDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAssociationDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAssociationDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAttributeDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAttributeDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowItemDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowLikeValue.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/deleg/ResourceObjectDefinitionDelegator.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/CorrelatorsDefinitionUtil.java
M infra/schema/src/main/resources/xml/ns/public/common/common-provisioning-3.xsd
R model/model-api/src/main/java/com/evolveum/midpoint/model/api/InboundSourceData.java
M model/model-api/src/main/java/com/evolveum/midpoint/model/api/context/ModelContext.java
M model/model-common/src/test/java/com/evolveum/midpoint/model/common/mapping/TestMappingMetadata.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ResourceObjectProcessingContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/transformer/DataAccessProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/AssociationConstructionExpressionEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/AssociationSynchronizationExpressionEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensElementContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensProjectionContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensUtil.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/AssociationMapper.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/AssociationValuesTripleComputation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/credentials/ProjectionCredentialsProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/DefaultSingleShadowInboundsProcessingContextImpl.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/FullInboundsProcessing.java
A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/InboundSourceData.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/SingleShadowInboundsProcessing.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/SingleShadowInboundsProcessingContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/FullInboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/InboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/LimitedInboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/MappedSourceItem.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/MappedSourceItems.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/SingleShadowInboundsPreparation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ProjectionUpdateOperation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/PolicyRuleEnforcer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/PreMappingsEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/SynchronizationContext.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/AbstractModelImplementationIntegrationTest.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/lens/TestProjector.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestPreviewChanges.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/AbstractInitializedSecurityTest.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityBasic.java
A model/model-intest/src/test/resources/security/role-user-add-read-some.xml
M pom.xml
M release-notes.adoc
M repo/system-init/src/main/resources/initial-objects/archetype/029-archetype-application.xml
A repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerInitializer.java
M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerQuartzImpl.java
M testing/story/src/test/resources/associations-real/resource-ldap.xml
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/action/DeleteRepositoryAction.java
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/action/worker/ImportProducerWorker.java
M tools/ninja/src/main/java/com/evolveum/midpoint/ninja/util/NinjaUtils.java
A tools/ninja/src/test/java/com/evolveum/midpoint/ninja/BaseUpgradeTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/ImportRepositoryTest.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/JenkinsTest.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/TestMain.java
R tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/BaseUpgradeTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/CreateDatabaseTest.java
M tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/UpgradeTest.java
M tools/ninja/testng-unit.xml
Log Message:
-----------
Merge branch 'master' into schema-context-annotations
Commit: 8a22494c810be602ed642a53a2c0bed291e5df81
https://github.com/Evolveum/midpoint/commit/8a22494c810be602ed642a53a2c0bed291e5df81
Author: KaterynaHonchar <honchar at evolveum.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd
M infra/schema/src/main/resources/xml/ns/public/common/common-gui-3.xsd
M infra/schema/src/main/resources/xml/ns/public/common/common-mining-3.xsd
M infra/schema/src/main/resources/xml/ns/public/common/common-model-context-3.xsd
M infra/schema/src/main/resources/xml/ns/public/common/common-policy-3.xsd
M infra/schema/src/main/resources/xml/ns/public/common/common-provisioning-3.xsd
M infra/schema/src/main/resources/xml/ns/public/common/common-security-3.xsd
M infra/schema/src/main/resources/xml/ns/public/common/common-simulations-3.xsd
M infra/schema/src/main/resources/xml/ns/public/common/common-tasks-3.xsd
Log Message:
-----------
schema context annotations
Compare: https://github.com/Evolveum/midpoint/compare/cac8fb979ae3...8a22494c810b
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