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

Unexpected results after query-all-ids on sample custom endpoint echo

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a defect
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Target Version/s:

      Description

      Need more information if expected behavior has changed in this case to begin work on QA-task OPENIDM-13927

      Reproduction following custom endpoint sample:

      1) We startup IDM with the custom endpoint echo as described in the samples guide (in this case using echo.groovy)

      2) We use the following curl command with query-all-ids

      curl \
       --header "X-OpenIDM-Username: openidm-admin" \
       --header "X-OpenIDM-Password: openidm-admin" \
       --header "Accept-API-Version: resource=1.0" \
       --request GET \
       "http://localhost:8080/openidm/endpoint/echo?_queryId=query-all-ids"
      
      {
          "result": [
              {}
          ],
          "resultCount": 1,
          "pagedResultsCookie"null,
          "totalPagedResultsPolicy""NONE",
          "totalPagedResults": -1,
          "remainingPagedResults": -1
      }
      

      3) However, as I understand this should have the same result as a _queryFilter=true which returns the following:

      curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Accept-API-Version: resource=1.0" \ --request GET \ "http://localhost:8080/openidm/endpoint/echo?_queryFilter=true"
      
      {
          "result": [
              {
                  "method""query",
                  "resourceName": "",
                  "pagedResultsCookie"null,
                  "pagedResultsOffset": 0,
                  "pageSize": 0,
                  "queryExpression"null,
                  "queryId"null,
                  "queryFilter""true",
                  "parameters": {},
                  "context": {
                      "class""org.forgerock.http.routing.ApiVersionRouterContext",
                      "name""apiVersionRouter",
                      (...)
      
      

        Attachments

          Activity

            People

            • Assignee:
              brmiller Brendan Miller
              Reporter:
              brayden.roth-white Brayden Roth-White
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: