Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-2225

RefFilter improvement for null relation value (Currently not working properly)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1 (Sinan)
    • Fix Version/s: 3.1.1
    • Component/s: GUI, Infra
    • Labels:
      None

      Description

      The filter looks like this:

      Debug dump:

      REF:
            PATH: parentOrgRef
            DEF: PRD:{.../common/common-3}parentOrgRef {.../common/common-3}ObjectReferenceType[0,-1],RAM
            VALUE:
              PRV(oid=00000000-8888-6666-0000-100000000001, targetType=null)
      

      Filter creation:

                  PrismReferenceValue referenceFilter = new PrismReferenceValue();
                  referenceFilter.setOid(oid);
                  referenceFilter.setRelation(null);
                  RefFilter referenceOidFilter = RefFilter.createReferenceEqual(new ItemPath(FocusType.F_PARENT_ORG_REF),
                          UserType.class, getPageBase().getPrismContext(), referenceFilter);
      

      I believe this filter should return objects with null value in relation, but it does not.

        Attachments

          Activity

            People

            Assignee:
            erik Erik Suta
            Reporter:
            erik Erik Suta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: