-
Type:
Improvement
-
Status: Open
-
Priority:
Trivial
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: API descriptor, audit logging
-
Environment:OpenAM 14.0.0-M30 Build 847682095e (2017-March-06 19:13)
When creating an audit service the default value for id is blank. Using this results in a poorly named service.
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ "commonHandler": { \ "enabled": true, \ "topics": [ \ "authentication", "access" \ ] \ }, \ "commonHandlerPlugin": { \ "handlerFactory": "string" \ }, \ "jsonConfig": { \ "location": "string", \ "elasticsearchCompatible": true, \ "rotationRetentionCheckInterval": "string" \ }, \ "jsonFileRotation": { \ "rotationEnabled": true, \ "rotationMaxFileSize": "string", \ "rotationFilePrefix": "string", \ "rotationFileSuffix": "string", \ "rotationInterval": "string", \ "rotationTimes": [ \ "string" \ ] \ }, \ "jsonFileRetention": { \ "retentionMaxNumberOfHistoryFiles": "string", \ "retentionMaxDiskSpaceToUse": "string", \ "retentionMinFreeSpaceRequired": "string" \ }, \ "jsonBuffering": { \ "bufferingMaxSize": "string", \ "bufferingWriteInterval": "string" \ } \ }' 'http://openam.test.forgerock.com/openam/json/global-config/services/audit/JSON/{id}'
results in a audit service named
Unknown macro: {id}
{ "_id": "{id}", "_rev": "-1317273412", "commonHandler": { "enabled": true, "topics": [ "authentication", "access" ] }, "jsonFileRotation": { "rotationFileSuffix": "string", "rotationFilePrefix": "string", "rotationEnabled": true, "rotationTimes": [ "string" ], "rotationMaxFileSize": "string", "rotationInterval": "string" }, "jsonFileRetention": { "retentionMinFreeSpaceRequired": "string", "retentionMaxDiskSpaceToUse": "string", "retentionMaxNumberOfHistoryFiles": "string" }, "jsonConfig": { "location": "string", "elasticsearchCompatible": true, "rotationRetentionCheckInterval": "string" }, "jsonBuffering": { "bufferingWriteInterval": "string", "bufferingMaxSize": "string" }, "commonHandlerPlugin": { "handlerFactory": "string" }, "_type": { "_id": "JSON", "name": "JSON", "collection": true } }