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

Unwanted space in error message #api/explorer/global-config/services/audit/JSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Not a defect
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: API descriptor
    • Labels:
    • Environment:
      OpenAM 14.0.0-M30 Build 847682095e (2017-March-06 19:13)

      Description

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

      Trying this out:

      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'
      

      Results in an error message with an unwanted space:

      {
        "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:
                  Resolved: