Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-8280

building-scripted-connector sample SearchScript.groovy not supporting presents query filter

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • OpenIDM 5.5.0
    • OpenIDM 6.0.0
    • _Samples
    • OpenIDM 5.5.0-SNAPSHOT (2f5833e), MYSQL 5.1.34, Java 1.8.0_111, scriptedsql connector 1.4.1.0

    Description

      ScriptedSQL sample 'building-scripted-connector' doesn't currently support presents query filter (its sw usage for system endpoint), when attribute is empty.

      We are using ?_queryFilter=email%20sw%20"" to check if attribute is presented (as noted in documentation to check presented attribute). Expected result is that if email is not set (is empty) it should not return as presented attribute

      curl --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin"  --request GET "http://localhost:8080/openidm/system/hrdb/account/?_queryFilter=email%20sw%20"""
      
      Response Content:
      {"result":[{"_id":"29","fullName":"","firstName":"1494414748","cars":[],"organization":"1494414748","email":"","uid":"PR1494414748","lastName":"1494414748"}],"resultCount":1,"pagedResultsCookie":null,"totalPagedResultsPolicy":"NONE","totalPagedResults":-1,"remainingPagedResults":-1}
      

      Attachments

        Activity

          People

            jbranch Jon Branch [X] (Inactive)
            michal.orlik@profiq.cz Michal Orlik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: