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

Newline character was not saved correctly when configured through UI and caused only one line in csv audit files

    Details

      Description

      When used UI to configure csvAuditEventHandler, UI would save endOfLineSymbols \n as
      n and cause the audit files have only one line.

      To reproduce:
      1. Start openidm with 4.0.0 RC1.
      2. Login to admin UI as openidm-admin.
      3. navigate to Configure->System Preference->Audit->csvAuditEventHandler
      4. Configure the quoteChar, delimiterChar and endofLineSymbols as *, - \n.
      (configured tamper evident features on the same page, but it should not matter), submit changes and save changes.
      5. Check audit.json, the field was saved as

       "endOfLineSymbols" : "\\n"
      

      6. check audit files(e.g. access.csv), the records are not separate with newlines.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                huck.elliott huck.elliott
                Reporter:
                Tinghua.Xu Tinghua.Xu
                QA Assignee:
                Tinghua.Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: