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

Admin UI, Audit, CSV Handler configuration, fails without proper signatureInterval entry


    • Target Version/s:
    • Story Points:
    • Sprint:
      OpenIDM Sprint 68


      revision: d8a4515 (10 Dec)

      To reproduce:

      Start OpenIDM with the audit sample
      (./startup.sh -p samples/audit-sample)

      Navigate to Audit (Configure > System Preferences > Audit)

      Add a CSV audit event handler (pop-up window appears)
      Add audit events (I added all 6)
      Activate Use for Queries and Enabled
      Add nothing else
      Click Submit to close the pop-up window
      Click Save to save changes to audit.json

      The following error appears in the console:

      `SEVERE: Bundle: org.forgerock.openidm.audit [58] [org.forgerock.openidm.audit] The modified method has thrown an exception
org.apache.felix.log.LogException: java.lang.IllegalArgumentException: String index out of range: 1 (through reference chain: org.forgerock.audit.handlers.csv.CsvAuditEventHandlerConfiguration["security"]->org.forgerock.audit.handlers.csv.CsvSecurity["signatureInterval"])`

      If I enter a number, a different error appears:

      `Dec 10, 2015 9:27:22 AM org.forgerock.audit.AuditServiceBuilder buildAuditEventHandlers
      SEVERE: Unable to create CsvAuditEventHandler 'Csv1': null
      org.forgerock.audit.AuditException: Unable to create CsvAuditEventHandler 'Csv1': null`

      The error does not appear when I enter a [Duration class time](https://stash.forgerock.org/projects/COMMONS/repos/forgerock-util/browse/forgerock-util/src/main/java/org/forgerock/util/time/Duration.java#183),

      such as 1 minute or 2 hrs

      in the signatureInterval text box

      I think the solution requires 2 changes
      1) Prevent exit from the CSV Audit Event Handler pop-up window unless a proper entry is made in the signatureInterval text box
      2) Include example acceptable entries in help text


          Issue Links



              • Assignee:
                oliver.bradley Oliver Bradley
                Mike2 Mike Jang [X] (Inactive)
              • Votes:
                0 Vote for this issue
                3 Start watching this issue


                • Created: