Describe the bug
When Resource Profiles are extracted, the Auditing trait is not correctly parsed, leading to invalid data in the dictionary.
To Reproduce
Add or alter a resource such that it has multiple Auditing values such as: "SUCCESS(READ),FAILURES(UPDATE)" in the example, the result dictionary showed:
Describe the bug When Resource Profiles are extracted, the Auditing trait is not correctly parsed, leading to invalid data in the dictionary.
To Reproduce Add or alter a resource such that it has multiple Auditing values such as: "SUCCESS(READ),FAILURES(UPDATE)" in the example, the result dictionary showed:
Expected behavior Result dictionary should show:
Console Output
{ "securityResult": { "resource": { "name": "TSTRES2", "class": "ELIJTEST", "operation": "listdata", "requestId": "ResourceRequest", "commands": [ { "safReturnCode": 0, "returnCode": 0, "reasonCode": 0, "image": "RLIST ELIJTEST (TSTRES2) ", "messages": [ "CLASS NAME", "----- ----", "ELIJTEST TSTRES2", " ", "LEVEL OWNER UNIVERSAL ACCESS YOUR ACCESS WARNING", "----- -------- ---------------- ----------- -------", " 00 ESWIFT NONE NONE NO", " ", "INSTALLATION DATA", "-----------------", "NONE", " ", "APPLICATION DATA", "----------------", "NONE", " ", "AUDITING", "--------", "SUCCESS(READ),FAILURES(UPDATE)", " ", "NOTIFY", "------", "NO USER TO BE NOTIFIED" ] } ] }, "returnCode": 0, "reasonCode": 0 } }
{ "securityResult": { "resource": { "name": "TSTRES2", "class": "ELIJTEST", "operation": "listdata", "requestId": "ResourceRequest", "commands": [ { "safReturnCode": 0, "returnCode": 0, "reasonCode": 0, "image": "RLIST ELIJTEST (TSTRES2) ", "profiles": [ { "base": { "class": "elijtest", "name": "tstres2", "level": 0, "owner": "eswift", "universalAccess": null, "yourAccess": null, "warning": null, "installationData": null, "applicationData": null, "auditing": { "success": "update" }, "notify": null, "generic": false } } ] } ] }, "returnCode": 0, "reasonCode": 0 } }