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

Using the query-all-count or query-all-ids-count queryId against a managed object where roles are returned by default causes error

    Details

      Description

      If a role attribute in managed.json has the returnByDefault value set to true, an error message is returned when attempting to perform a query-all-count or query-all-ids-count queryId against that managed object type.

      GET http://localhost:8080/openidm/managed/user?_queryId=query-all-count
      
      {
          "code": 400,
          "reason": "Bad Request",
          "message": "Required either URI parameter managedObjectId or request paremeter managedObjectId but none were found."
      }
      

      The same test on IDM 6.5.0 works correctly:

      GET http://localhost:8080/openidm/managed/user?_queryId=query-all-count
      
      {
          "result": [
              {
                  "total": 0
              }
          ],
          "resultCount": 1,
          "pagedResultsCookie": null,
          "totalPagedResultsPolicy": "NONE",
          "totalPagedResults": -1,
          "remainingPagedResults": -1
      }
      

        Attachments

          Activity

            People

            • Assignee:
              michal.orlik Michal Orlik
              Reporter:
              tom.wood Tom Wood
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: