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

Embedded DJ explicit user returns null instead of []

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: Module - Repository DS
    • Labels:
    • Environment:
      OpenIDM: 7.0.0-SNAPSHOT ccba5cc

      Description

      Embedded DJ explicit user returns null instead of []. All the other repositories does returns [].

      To reproduce:
      1. Setup IDM with Embedded DJ explicit user
      2. create user

       	curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --header "If-None-Match: *" --header "Content-Type: application/json" --data '{"userName": "rsutter", "givenName": "rick", "sn": "sutter", "mail": "rick@example.com", "telephoneNumber": "6669876987", "password": "Th3Password", "description": "Just another user"}' --request PUT "http://localhost:8080/openidm/managed/user/ricksutter"
      
      {
      	"_id": "ricksutter",
      	"_rev": "000000006027e3ce",
      	"userName": "rsutter",
      	"accountStatus": "active",
      	"effectiveRoles": null, <==================
      	"effectiveAssignments": null, <==================
      	"postalAddress": null,
      	"displayName": null,
      	"description": "Just another user",
      	"givenName": "rick",
      	"sn": "sutter",
      	"telephoneNumber": "6669876987",
      	"mail": "rick@example.com",
               ...
      }
      

      Notice the

      • "effectiveRoles": null,
      • "effectiveAssignments": null,

      Compared to generic Embedded DJ:

      curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --header "If-None-Match: *" --header "Content-Type: application/json" --data '{"userName": "rsutter", "givenName": "rick", "sn": "sutter", "mail": "rick@example.com", "telephoneNumber": "6669876987", "password": "Th3Password", "description": "Just another user"}' --request PUT "http://localhost:8080/openidm/managed/user/ricksutter" | jq .
      
      {
        "_id": "ricksutter",
        "_rev": "00000000a4a0f13b",
        "userName": "rsutter",
        "givenName": "rick",
        "sn": "sutter",
        "mail": "rick@example.com",
        "telephoneNumber": "6669876987",
        "description": "Just another user",
        "accountStatus": "active",
        "effectiveRoles": [], <======================
        "effectiveAssignments": [] <======================
      }
      

      To run automated test:
      config.cfg - repo_type = embedded_dj_explicit_table
      ./run-pybot.py -t query_all_with_one_user -n openidm

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brmiller Brendan Miller
                Reporter:
                Ladislav.Folta Ladislav Folta
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: