Skip to content

Changes

Summary

  1. #1882 fixed ResolvedPolicyCacheLoader loading policy imports transitively (commit: 7483dcc) (details)
  2. #1882 enhanced unit test to ensure that transitive policy is not loaded (commit: 05a2623) (details)
Commit 7483dcce019974ef8d0551bb7d200a8bac44bfc8 by Thomas Jaeckle
#1882 fixed ResolvedPolicyCacheLoader loading policy imports transitively

* cause was that by recursively using the cache, also policy imports were resolved transitively
* that could e.g. lead to a "PolicyLabelInvalidException" for scenarios with very nested policy import paths
* in either case, it was breaking the not available transitiveness of policy imports
(commit: 7483dcc)
The file was modified thingsearch/service/src/main/java/org/eclipse/ditto/thingsearch/service/persistence/write/streaming/ResolvedPolicyCacheLoader.java (diff)
The file was addedthingsearch/service/src/main/java/org/eclipse/ditto/thingsearch/service/persistence/write/streaming/PolicyIdResolvingImports.java
The file was modified thingsearch/service/src/main/java/org/eclipse/ditto/thingsearch/service/persistence/write/streaming/EnforcementFlow.java (diff)
Commit 05a2623f6959e17d056ba277c03ab634b4510968 by Thomas Jaeckle
#1882 enhanced unit test to ensure that transitive policy is not loaded
(commit: 05a2623)
The file was modified thingsearch/service/src/test/java/org/eclipse/ditto/thingsearch/service/persistence/write/streaming/EnforcementFlowTest.java (diff)