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

Error in QueryAPI using exists

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.4.1
    • 4.6, 4.4.3
    • None
    • None
    • Active subscription
    • 4.4

    Description

      Using this query for users in an expression results in an IllegalArgumentException

      prismContext.queryFor(UserType.class).exists(F_ROLE_MEMBERSHIP_REF, T_OBJECT_REFERENCE).item(F_NAME).eq(„TestRolle“).build().

       

      The same query as XML executed in the query playground does not cause any errors.

      <query>
          <filter>
            <exists>
               <path>roleMembershipRef/@</path>
               <filter>
                  <equal>
                     <path>name</path>
                     <value>TestRolle</value>
                  </equal>
               </filter>
            </exists>
          </filter>
      </query>
      

      Attachments

        Activity

          People

            sven.lukrafka Sven Lukrafka
            sven.lukrafka Sven Lukrafka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: