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

Errors when following sample audit-jdbc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.0.1
    • Fix Version/s: 7.1.0
    • Component/s: None
    • Labels:
    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      1
    • Sprint:
      2020.16 - IDM, 2020.17 IDM

      Description

      Follow setup for sample: audit-jdbc

      When executing Step 2 to see entries in auditrecon the table is empty, when a recon transaction is expected.

      File: sample/audit-jdbc/conf/audit.json needs to include recon in the topics, it's currently not there:

      "topics" : [
      "access",
      "activity",
      "recon",
      "sync",
      "authentication",
      "config"
      ]

      If you log into the admin UI and do a recon on the mapping: managedUser_systemCsvfileAccounts an error appears:

       

      Unexpected failure during source reconciliation 2027375d-5f25-402f-9d75-78687fdb25f4-8909Unexpected failure during source reconciliation 2027375d-5f25-402f-9d75-78687fdb25f4-8909org.forgerock.openidm.sync.SynchronizationException: Transformation script error :  TypeError: Cannot call method "map" of null for attribute '/roles' at org.forgerock.openidm.sync.PropertyMapping.apply(PropertyMapping.java:147)
      

      In the below tranform script need a check for null.

       

       

      {
        "source" : "authzRoles",
        "transform" : {
          "type" : "text/javascript",
          "globals" : { },
          "source" : "source.map(function (r) { return r._ref; } ).join(',');"
         },
         "target" : "roles"
      }
      

       

       

       

        Attachments

          Activity

            People

            Assignee:
            kyle.voos Kyle Voos
            Reporter:
            margaret.rizkalla Margaret Rizkalla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: