[OPENIDM-13784] Internal Role 'authzRoles' array does not return null fields anymore for REST requests Created: 18/Sep/19 Updated: 22/Oct/19 Resolved: 22/Oct/19 |
|
Status: | Closed |
Project: | OpenIDM |
Component/s: | Module - Relationships |
Affects Version/s: | 7.0.0 |
Fix Version/s: | 7.0.0 |
Type: | Bug | Priority: | Major |
Reporter: | Alexander Dracka | Assignee: | Matthias Grabiak |
Resolution: | Fixed | Votes: | 0 |
Labels: | regression | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||
Target Version/s: | |||||||||
Support Ticket IDs: |
Description |
Issue occurs with the openidm-7.0.0-2019-09-11-18-23-a2f6d68 Null fields of Internal Roles (authzRoles array) are not return anymore. Request like this: curl -X GET \ 'http://idm.example.com:8080/openidm/internal/role/openidm-authorized/authzMembers?_queryFilter=_refResourceId%20eq%20%22bjensen%22&_fields=authzRoles/%2A' \ -H 'X-OpenIDM-Password: openidm-admin' \ -H 'X-OpenIDM-Username: openidm-admin' currently return authzRoles field like this: "authzRoles": [ { "_ref": "internal/role/openidm-authorized", "_refResourceCollection": "internal/role", "_refResourceId": "openidm-authorized", "_refProperties": { "_id": "5f268356-9868-41dc-8b0b-1e321d7ecb8a", "_rev": "0" }, "_id": "openidm-authorized", "_rev": "0", "name": "openidm-authorized", "description": "Basic minimum user" } ] Prior to the mentioned SNAPSHOT build the authzRoles looks like this: "authzRoles": [ { "_ref": "internal/role/openidm-authorized", "_refResourceCollection": "internal/role", "_refResourceId": "openidm-authorized", "_refProperties": { "_id": "cf4075e1-b494-42ac-a51c-277cd98445ea", "_rev": "0" }, "_id": "openidm-authorized", "_rev": "0", "name": "openidm-authorized", "description": "Basic minimum user", "temporalConstraints": null, "privileges": null } ] As you can see there used to be 'temporalConstaints' and 'privileges' with null values |
Comments |
Comment by Brendan Miller [ 19/Sep/19 ] |
Consider reverting the change for |
Comment by Matthias Grabiak [ 22/Oct/19 ] |
This is fixed, in addition to returning the fields temporalConstraints and privileges as null it will now also the condition field as null. The QA tests should be updated accordingly. |