Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-4295

Attempt to reset value parent from PrismReference

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7
    • Component/s: None
    • Labels:

      Description

      When requesting (WF enabled) two new org assignments to the role I get:

      (requestor authorization is not a factor)

      2017-11-30 15:51:27,100 [] [midPointScheduler_Worker-7] ERROR (com.evolveum.midpoint.wf.impl.processors.primary.WfPrepareChildOperationTaskHandler): Couldn't prepare child model context.
      java.lang.IllegalStateException: Attempt to reset value parent from PrismReference({.../common/common-3}createApproverRef):[PRV(oid=a7e5c47d-a4c7-4e6f-b98a-7be3ee9ac012, targetType={.../common/common-3}UserType, targetName=liznerm, relation={.../common/org-3}default)] to PrismReference({.../common/common-3}createApproverRef):[]
      	at com.evolveum.midpoint.prism.PrismValue.setParent(PrismValue.java:122)
      	at com.evolveum.midpoint.prism.PrismReference.add(PrismReference.java:116)
      	at com.evolveum.midpoint.prism.PrismReference.merge(PrismReference.java:125)
      	at com.evolveum.midpoint.prism.xjc.PrismReferenceArrayList.add(PrismReferenceArrayList.java:116)
      	at com.evolveum.midpoint.prism.xjc.PrismReferenceArrayList.addAll(PrismReferenceArrayList.java:124)
      	at com.evolveum.midpoint.wf.impl.processors.primary.ApprovalMetadataHelper.addAssignmentCreationApprovalMetadata(ApprovalMetadataHelper.java:126)
      	at com.evolveum.midpoint.wf.impl.processors.primary.ApprovalMetadataHelper.addAssignmentApprovalMetadataOnObjectModify(ApprovalMetadataHelper.java:80)
      	at com.evolveum.midpoint.wf.impl.processors.primary.ApprovalMetadataHelper.addAssignmentApprovalMetadata(ApprovalMetadataHelper.java:62)
      	at com.evolveum.midpoint.wf.impl.processors.primary.WfPrepareChildOperationTaskHandler.run(WfPrepareChildOperationTaskHandler.java:105)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:639)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:463)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:182)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      

        Attachments

          Activity

            People

            • Assignee:
              mederly Pavol Mederly
              Reporter:
              martin.lizner Martin Lizner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: