[midPoint-git] [Evolveum/midpoint] 1512ed: Fix ref filter matching for OID=null

mederly noreply at github.com
Wed Jan 15 11:47:31 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 1512ed0dcd96e4dd7008c55853f12c517f0b86ca
      https://github.com/Evolveum/midpoint/commit/1512ed0dcd96e4dd7008c55853f12c517f0b86ca
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/RefFilterImpl.java

  Log Message:
  -----------
  Fix ref filter matching for OID=null

I.e. when
- oidNullIsAny = false,
- filter OID = null,
- object reference OID = null.


  Commit: 169241c0b51a0219959fc09299348fc52a79b26f
      https://github.com/Evolveum/midpoint/commit/169241c0b51a0219959fc09299348fc52a79b26f
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/assignment/AbstractRoleAssignmentPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/assignment/AssignmentPanel.java
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/assignment/GdprAssignmentPanel.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/query/RefFilter.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/query/builder/S_ConditionEntry.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/RefFilterImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/builder/R_AtomicFilter.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/query/TestObjectQuery.java
    M infra/util/src/main/java/com/evolveum/midpoint/util/MiscUtil.java
    M repo/repo-sql-impl-test/src/test/java/com/evolveum/midpoint/repo/sql/QueryInterpreter2Test.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/query2/restriction/ReferenceRestriction.java

  Log Message:
  -----------
  Improve OID-less ref filter implementation

1. The default for oidNullAsAny is now TRUE (was false).
2. Repo query interpreter rejects oid=null if oidNullAsAny=false.
3. Ref filter construction in query builder was cleaned up a little bit.

This is to resolve MID-5987.


Compare: https://github.com/Evolveum/midpoint/compare/aecca3fb6a9c...169241c0b51a


More information about the midPoint-svn mailing list