-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 7.0.0
-
Fix Version/s: 7.0.0
-
Component/s: Module - Repository DS
-
Labels:
-
Environment:OpenIDM: 7.0.0-SNAPSHOT 55394c2
-
Target Version/s:
-
Verified Version/s:
-
Story Points:3
-
Sprint:2020.06 - IDM, 2020.07 - IDM
-
Epic Link:
When creating user with on embedded dj explicit mapping, the effectiveAssignments is returned as null instead of an empty array like all other repositories do.
curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --header "If-None-Match: *" --header "Content-Type: application/json" --data '{"id": "ricksutter", "userName": "rsutter", "givenName": "rick", "sn": "sutter", "mail": "rick@example.com", "telephoneNumber": "6669876987", "password": "Th3Password", "description": "Just another user", "roles": [{"_ref": "managed/role/role1"}, {"_ref": "managed/role/role2"}]}' --request PUT "http://localhost:8080/openidm/managed/user/ricksutter" Response Content: { "effectiveAssignments": null, <=== THIS ... "_id": "ricksutter", "_rev": "00000000f67000a4", "userName": "rsutter", "accountStatus": "active", "effectiveRoles": [{ "_ref": "managed/role/role1" }, { "_ref": "managed/role/role2" }], "postalCode": null, "description": "Just another user", "givenName": "rick", "sn": "sutter", "telephoneNumber": "6669876987", "mail": "rick@example.com", "id": "ricksutter", "history": null }
vs 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 '{"id": "ricksutter", "userName": "rsutter", "givenName": "rick", "sn": "sutter", "mail": "rick@example.com", "telephoneNumber": "6669876987", "password": "Th3Password", "description": "Just another user", "roles": [{"_ref": "managed/role/role1"}, {"_ref": "managed/role/role2"}]}' --request PUT "http://localhost:8080/openidm/managed/user/ricksutter" Response Content: { "effectiveAssignments": [] <=== THIS "_id": "ricksutter", "_rev": "00000000db180904", "id": "ricksutter", "userName": "rsutter", "givenName": "rick", "sn": "sutter", "mail": "rick@example.com", "telephoneNumber": "6669876987", "description": "Just another user", "accountStatus": "active", "effectiveRoles": [{ "_ref": "managed/role/role1" }, { "_ref": "managed/role/role2" }], }
or mysql explicit:
curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --header "If-None-Match: *" --header "Content-Type: application/json" --data '{"id": "ricksutter", "userName": "rsutter", "givenName": "rick", "sn": "sutter", "mail": "rick@example.com", "telephoneNumber": "6669876987", "password": "Th3Password", "description": "Just another user", "roles": [{"_ref": "managed/role/role1"}, {"_ref": "managed/role/role2"}]}' --request PUT "http://localhost:8080/openidm/managed/user/ricksutter" Response Content: { "effectiveAssignments": [], <=== THIS "_id": "ricksutter", "_rev": "0", "userName": "rsutter", "accountStatus": "active", "givenName": "rick", "description": "Just another user", "sn": "sutter", "telephoneNumber": "6669876987", "mail": "rick@example.com", "kbaInfo": null, "preferences": null, "consentedMappings": null, "effectiveRoles": [{ "_ref": "managed/role/role1" }, { "_ref": "managed/role/role2" }], "active": null, "id": "ricksutter", "history": null ... }
- is duplicated by
-
OPENIDM-12125 effectiveAssignments and effectiveRoles are reported as null instead of [] with an embedded or external DS repo with explicit tables
-
- Closed
-