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

Deleting referenced objects in onDelete script triggers "Not Found" error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: OpenIDM 6.0.0
    • Fix Version/s: None
    • Component/s: Module - Relationships
    • Labels:
      None
    • Support Ticket IDs:

      Description

      In the test case, create two custom managed objects A and B with a bidirectional relationship, 1 to many for A.attr1 -> B.attr2, and 1 to 1 for B.attr2 -> A.attr1. The deletion logic is when an a1 is deleted, all the referenced B objects are also purged. If this is done in the onDelete script hook, all related objects are deleted successfully except that the curl call returns an error like the following:

      {
          "code": 404,
          "reason": "Not Found",
          "message": "No Such Entry: The search base entry 'uid=17f4185b-99a3-4ff3-aa6a-b2afc72c6231,ou=relationships,dc=openidm,dc=forgerock,dc=com' does not exist"
      }
      
      

      The error is not seen in version 5.5. The workaround for IDM 6 is to perform referenced object deletion in postDelete script hook.

        Attachments

          Activity

            People

            Assignee:
            dhogan Dirk Hogan
            Reporter:
            yinyan.cao Yinyan Cao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: