Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-8005

Error when enabling the csv audit handler for queries

    XMLWordPrintable

    Details

      Description

      This issue occurs when trying to switch the "use for queries" from repo to csv:

      Using OOB 4.5:

      • Go to Configure > System Preferences > Audit
      • Select "Use for Queries" on the CSV Handler (DO NOT press save yet)
      • Edit the CSV handler by clicking on edit icon
      • The Edit Handler View appears: Make no changes but click Submit
      • Click Save on the parent view

      View the audit.json to see that the CSV handler has enabled:false.

       "eventHandlers" : [
              {
                  "class" : "org.forgerock.audit.handlers.csv.CsvAuditEventHandler",
                  "config" : {
                      "fileRotation" : {
                          "rotationEnabled" : true,
                          "maxFileSize" : 0,
                          "rotationFilePrefix" : "",
                          "rotationTimes" : [ ],
                          "rotationFileSuffix" : "-yyyy.MM.dd-HH.mm",
                          "rotationInterval" : "5 minutes"
                      },
      ....
                      "enabled" : false
                  }
              },
      
      

      This causes issues if you have mappings and then click on the mappings page. The following error would result:

           {
                "method": "GET",
                "url": "https://va-portal.ossc.com:8443/openidm/endpoint/mappingDetails",
              },
              "response": {
                "status": 500,
                "statusText": "Server Error",
                "httpVersion": "HTTP/1.1",
                "content": {
                  "mimeType": "application/json; charset=UTF-8",
                  "size": 155,
                  "text": "{\"code\":500,\"reason\":\"Internal Server Error\",\"message\":\"The handler defined for queries, 'csv', has not been registered to the audit service.\",\"detail\":{}}"
            },
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cgdrake Chris Drake
              Reporter:
              mark.offutt Mark Offutt [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: