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

Privilege with filter does not work for mysql repo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a defect
    • Affects Version/s: 6.5.0
    • Fix Version/s: 6.5.0
    • Component/s: Module - Authorization
    • Labels:
    • Environment:
      OpenIDM: 6.5.0-SNAPSHOT 642d140
      OpenIDM: 6.5.0-SNAPSHOT 0616c74

      Description

      Privilege with defined filter does not work for mysql repo.

      Test case delegated_admin.delegated_admin_stories.create_multiple_privileges_with_conflict is failing when repo_type="mysql". Verified also manually, this issue doesn't occur when Privilege without filter is created

      Steps to reproduce:

      1. Create 2 users (one for D.A. one with city field defined eg 'California')
      2. Create Internal Role
      3. Create Privilege for that role with permission "VIEW" and add filter for city eg: /city eq 'California'

      Expected result: D.A. is able to see only one user in his UI or with REST call: 

      curl -X GET \
        'http://idm.example.com:8080/openidm/managed/user?_queryFilter=true' \
        -H 'X-OpenIDM-Password: Passw0rd' \
        -H 'X-OpenIDM-Username: fuser' \
        -H 'cache-control: no-cache'
      

      Actual result: D.A. is not able see any user at all.

        Attachments

          Activity

            People

            Assignee:
            krismy.alfaro Krismy Alfaro
            Reporter:
            alexander.dracka Alexander Dracka
            QA Assignee:
            Alexander Dracka Alexander Dracka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: