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

Setting returnByDefault for a relationship property to true could cause reconciliation exception with DJ repo explicit mapping managed user

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      3
    • Support Ticket IDs:
    • Zendesk ID:
      38136

      Description

      To reproduce this issue:

      Set up IDM 6.0.0.3 with DJ repository, use explicit mapping for managed user objects.

      Set returnByDefault to true for the manager relationship property in managed user.  

      Set up a simple mapping from IDM to DS. Do not include the "manager" attribute in this mapping. 

      Create a few users in IDM. The manager property doesn't need to be populated.

      Run reconciliation from IDM to DS.  The following exception is generated:

      
      [384] Mar 13, 2019 3:38:09.596 PM org.forgerock.openidm.sync.impl.SourceRecon recon
      
      WARNING: Unexpected failure during source reconciliation 808ee6b0-5a4b-47cd-9789-15f54d24ef5f-26736
      
      org.forgerock.openidm.sync.SynchronizationException: The request cannot be processed because it included an unrecognized field '/manager'
      
       at org.forgerock.openidm.sync.impl.SyncOperation.execScript(SyncOperation.java:843)
      
       at org.forgerock.openidm.sync.impl.SyncOperation.execScript(SyncOperation.java:792)
      
       at org.forgerock.openidm.sync.impl.SyncOperation.performAction(SyncOperation.java:544)
      
       at org.forgerock.openidm.sync.impl.SourceSyncOperation.sync(SourceSyncOperation.java:78)
      
       at org.forgerock.openidm.sync.impl.SourceRecon.recon(SourceRecon.java:75)
      
       at org.forgerock.openidm.sync.impl.ReconTask.call(ReconTask.java:57)
      
       at org.forgerock.openidm.sync.impl.ReconTask.call(ReconTask.java:24)
      
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      
       at java.lang.Thread.run(Thread.java:748)
      
      Caused by: org.forgerock.json.resource.BadRequestException: The request cannot be processed because it included an unrecognized field '/manager'
      
       at org.forgerock.opendj.rest2ldap.Utils.newBadRequestException(Utils.java:130)
      
       at org.forgerock.opendj.rest2ldap.Utils.newBadRequestException(Utils.java:126)
      
       ....
      	at com.sun.proxy.$Proxy39.eval(Unknown Source)
      	at org.forgerock.openidm.script.registry.ScriptRegistryImpl$ScriptImpl.eval(ScriptRegistryImpl.java:814)
      	at org.forgerock.openidm.util.Script.exec(Script.java:49)
      	at org.forgerock.openidm.sync.impl.SyncOperation.execScript(SyncOperation.java:838)
      	... 12 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dhogan Dirk Hogan
                Reporter:
                yinyan.cao Yinyan Cao
                QA Assignee:
                Alexander Dracka
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: