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

Null in AND filter

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2 (Tycho)
    • Provisioning
    • None
    • Midpoint demo

    Description

      There is a bug in Accounts Search in resources of type database databasetable. E.g. in http://demo.evolveum.com/midpoint (List Ressources, Accounts Adressbook)

      Using the Search field results in an unexpected error.

      To get rid oft he error I replaced in connid\java\connector-framework\src\main\java\org\identityconnectors\framework\common\objects\filter\AndFilter.java (method accept)

      Main problem is that AndFilter contains null subfilter, and this was probably created in provisioning.

      //original result = subFilter.accept(obj);

      if (subFilter!=null) result = subFilter.accept(obj);

       operation.com.evolveum.midpoint.model.impl.controller.ModelController.searchObjects
      
          Couldn't search objects in provisioning
          Param: query: Q{AND(AND(REF: resourceRef,PRV(oid=c1b8b075-8c45-4058-ba32-753b87ac2da0, targetType=null),EQUAL(objectClass,PPV(QName:{...resource/instance-3}AccountObjectClass)),SUBSTRING: attributes/name,PPV(String:leon)),PAGING: O: 0,M: 10,,
          Param: searchProvider: PROVISIONING
          Param: paging: PAGING: O: 0,M: 10,
          Cause:
      
          [ HIDE ERROR STACK ]
      
          java.lang.NullPointerException
          at org.identityconnectors.framework.common.objects.filter.AndFilter.accept(AndFilter.java:60)
          at org.identityconnectors.framework.impl.api.local.operations.FilteredResultsHandler.handle(FilteredResultsHandler.java:68)
          at org.identityconnectors.framework.impl.api.local.operations.SearchImpl$1.handle(SearchImpl.java:137)
      

      Attachments

        Issue Links

          Activity

            People

              lazyman Viliam Repan
              lazyman Viliam Repan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: