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

SchemaService does not allow filtering on _id

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: None
    • Labels:
    • Target Version/s:
    • Story Points:
      1
    • Sprint:
      IDM - 2021.3

      Description

      I am trying to extend an IDM CREST query filter to hide certain managed resources.  The UI makes a request to the IDM schema endpoint: /openidm/schema/?_queryFilter=/resourceCollection sw "managed".  I would like to add an additional constraints to hide any results where the _id matches one of three resources.

      I have tried the following but it doesn't work as I'd hoped: (/resourceCollection sw "managed") and !((_id eq "managed/hidden1") or (_id eq "managed/hidden2") or (_id eq "managed/hidden3")). This generates the same results as the first query.

      Workaround: querying by resourceCollection appears to work: (/resourceCollection sw "managed") and !((resourceCollection eq "managed/hidden1") or (resourceCollection eq "managed/hidden2") or (resourceCollection eq "managed/hidden3"))

        Attachments

          Activity

            People

            Assignee:
            brmiller Brendan Miller
            Reporter:
            craig.mcdonnell Craig McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: