[OPENAM-10871] get types returns empty lists for #api/explorer/global-config/services/audit/JSON Created: 14/Mar/17  Updated: 22/Mar/17  Resolved: 22/Mar/17

Status: Closed
Project: OpenAM
Component/s: API descriptor
Affects Version/s: 14.0.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Andrew Vinall Assignee: Unassigned
Resolution: Not a defect Votes: 0
Labels: AME
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OpenAM 14.0.0-M30 Build 847682095e (2017-March-06 19:13)


Issue Links:
Relates
Rank: 1|hzt3hb:

 Description   

The calls to get a list of audit types

global-config/services/audit/JSON - Action: getAllTypes

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' 'http://openam.test.forgerock.com/openam/json/global-config/services/audit/JSON?_action=getAllTypes'

/global-config/services/audit/JSON#_action_getcreatabletypes - Action: getCreatableTypes

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' 'http://openam.test.forgerock.com/openam/json/global-config/services/audit/JSON?_action=getCreatableTypes'

Both return an empty list

{
  "result": []
}





N.B. In contrast the XUI uses this call

http://openam.test.forgerock.com/openam/json/global-config/services/audit?_action=getCreatableTypes&forUI=true


 Comments   
Comment by Andrew Vinall [ 14/Mar/17 ]

Bug Triage: Check functionality in Export/Import with Amster

Comment by Andrew Vinall [ 22/Mar/17 ]

Not a bug. The endpoint has no children so is returning an empty list.

For example the parent endpoint returns an appropriate list.

http://aczv.205.example.com:8080/openam/json/global-config/services/audit?_action=getCreatableTypes
{
  "result": [
    {
      "_id": "CSV",
      "name": "CSV",
      "collection": true
    },
    {
      "_id": "JSON",
      "name": "JSON",
      "collection": true
    },
    {
      "_id": "Elasticsearch",
      "name": "Elasticsearch",
      "collection": true
    },
    {
      "_id": "JMS",
      "name": "JMS",
      "collection": true
    },
    {
      "_id": "Syslog",
      "name": "Syslog",
      "collection": true
    },
    {
      "_id": "Splunk",
      "name": "Splunk",
      "collection": true
    },
    {
      "_id": "JDBC",
      "name": "JDBC",
      "collection": true
    }
  ]
}
Generated at Thu Feb 25 16:38:39 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.