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

Admin UI -- CSV Audit Handler: if tamper-evident security is disabled and signature interval is blank, other security entries lead to audit service failure

    Details

    • Target Version/s:
    • Story Points:
      3
    • Sprint:
      OpenIDM Sprint 55

      Description

      When configuring csvAuditEventHandler, if tamper evident feature is not enabled. Configure other feature/section on the page w/o configuring signature interval would cause audit service fail to start. OpenIDM conole logged:

      > OpenIDM ready
      OpenIDM version "4.0.0-RC1" (revision: 392ce8b) jenkins-OpenIDM - Release-9 origin/release/4.0.0
      Configuration invalid, can not start Audit service.
      java.lang.IllegalArgumentException: Cannot parse empty duration, expecting '<value> <unit>' pattern (through reference chain: org.forgerock.audit.handlers.csv.CsvAuditEventHandlerConfiguration["security"]->org.forgerock.audit.handlers.csv.CsvSecurity["signatureInterval"])
      	at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:3459)
      	at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:3378)
      	at org.forgerock.audit.json.AuditJsonConfig.parseAuditEventHandlerConfiguration(AuditJsonConfig.java:269)
      ...
      

      To reproduce:
      1. Start openidm with 4.0.0 RC1 build.
      2. login admin UI
      3. navigate to Configure->system preference->audit->csvAuditEventHandler
      4. Enable the handler and configured quoteChar,delimiterChar and endOfLineSymbols as * - \n.
      5. submit changes and save changes.
      6. Observer the error message in OpenIDM console.

      Talked to JasonL, he mentioned it would be better to fix it from OpenIDM side instead of CAUD side as it has more impact and involves more teams.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jake.feasel Jake Feasel
                Reporter:
                Tinghua.Xu Tinghua.Xu
                QA Assignee:
                Tinghua.Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: