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

UI allows submission of an empty resourceCollection, resulting in NPE and corrupting managed.json

    XMLWordPrintable

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      2
    • Sprint:
      2021.2 UI EarlyBirds

      Description

      This is more of a robustness issue: I was trying to quickly navigate to and switch on the 'notify' flag of the 'reports' reverse relationship. By mistake, I clicked on the "+ Related Resource" field instead of the existing 'user' resource collection, then flipped the switch without selecting a resource.

      The UI allowed me to do this, but IDM subsequently threw the below NPE, and managed.json got corrupted such that both the 'manager' and 'reports' properties were no longer editable.

      To reproduce:

      • Go to Managed Objects / user , and click on the 'reports' property.
      • Click on "+ Related Resource"
      • Do not select an object type in the drop-down
      • Change the 'notify' slider to on and click Save.

      {{Result: }}

      1) Debug log shows:
      SEVERE: Bundle: org.forgerock.openidm.managed [333] bundle org.forgerock.openidm.managed:7.0.0 (333)[org.forgerock.openidm.managed.service(162)] : The updatedManagedObjectConfig method has thrown an exception
      {{ java.lang.NullPointerException: A resourceCollection's path field may not be blank}}

      2) UI no longer recognises neither the manager nor the reports properties as relationships, and displays them like simple string properties instead.

        Attachments

          Activity

            People

            Assignee:
            oliver.bradley Oliver Bradley
            Reporter:
            tim.vogt Tim Vogt
            QA Assignee:
            Krismy Alfaro Krismy Alfaro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: