Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-10863

Incorrect Create Methods in #api/explorer/global-config/services/audit/JSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 14.0.0, 14.0.0-M30
    • Fix Version/s: None
    • Labels:
    • Environment:
      OpenAM 14.0.0-M30 Build 847682095e (2017-March-06 19:13)

      Description

      The audit service types list 2 create methods the first one seems to be incorrect

      global-config/services/audit - "Create with Client-Assigned ID"

      global-config/services/audit/JSON/id - Create with Client-Assigned ID

      Problems

      • Its description reads "Create with Client-Assigned ID"
        • But there it does not accept an ID
      • The method doesn't seem to work
      curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
         "commonHandler": { \ 
           "enabled": true, \ 
           "topics": [ \ 
             "string" \ 
           ] \ 
         }, \ 
         "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'
      
      {
        "code": 400,
        "reason": "Bad Request",
        "message": "The resource collection  cannot be updated"
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                AndrewVinall Andrew Vinall
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: