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

Removing and adding the same projection fails: Attempt to add object:null(null) to a user that already contains account...

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None

      Description

      1. user has a projection (no assignment) of CSV resource account
      2. edit user
      3. delete projection, but don't save yet!
      4. re-add the same projection
      5. click Save

      2019-04-23 11:08:20,122 [] [pool-3-thread-20] INFO (com.evolveum.midpoint.audit.log): 2019-04-23T11:08:20.122+0200 eid=1556010500122-0-1, et=MODIFY_OBJECT, es=REQUEST, sid=65AE46746F5BFB7339BBD6F969F5C906, rid=23c8747c-8c3f-4a84-a998-ac808cc2e217, tid=1556010500067-0-1, toid=null, hid=localhost, nid=DefaultNode, raddr=127.0.0.1, I=FocusType:00000000-0000-0000-0000-000000000002(user), T=PRV(oid=42ee2b4d-98d3-43df-a9df-60640cb226a4, targetType={.../common/common-3}UserType, targetName=kirk, relation={.../common/org-3}default), TO=null, D=[42ee2b4d-98d3-43df-a9df-60640cb226a4:MODIFY], ch=http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user, o=null, p=null, m=
      2019-04-23 11:08:20,122 [] [pool-3-thread-20] DEBUG (com.evolveum.midpoint.audit.log): Details of event 1556010500122-0-1 stage REQUEST
      Deltas:
        ObjectDeltaOperation
          Delta:
            ObjectDelta<UserType>(UserType:42ee2b4d-98d3-43df-a9df-60640cb226a4,MODIFY):
              linkRef
                ADD: oid=null(ShadowType)*
                DELETE: oid=55911984-31ca-4d45-8721-5c3e0b759565(ShadowType)*
          Execution result: null
          Object name:
            PolyString(kirk,kirk)
      
      2019-04-23 11:08:20,169 [] [pool-3-thread-20] INFO (com.evolveum.midpoint.audit.log): 2019-04-23T11:08:20.169+0200 eid=1556010500169-0-1, et=MODIFY_OBJECT, es=EXECUTION, sid=65AE46746F5BFB7339BBD6F969F5C906, rid=23c8747c-8c3f-4a84-a998-ac808cc2e217, tid=1556010500067-0-1, toid=null, hid=localhost, nid=DefaultNode, raddr=127.0.0.1, I=FocusType:00000000-0000-0000-0000-000000000002(user), T=PRV(oid=42ee2b4d-98d3-43df-a9df-60640cb226a4, targetType={.../common/common-3}UserType, targetName=kirk, relation={.../common/org-3}default), TO=null, D=[], ch=http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user, o=FATAL_ERROR, p=null, m=Attempt to add object:null(null) to a user that already contains account of type 'default' on resource:10000000-9999-9999-0000-a000ff000002(CSV-1 (Document Access))
      2019-04-23 11:08:20,169 [] [pool-3-thread-20] DEBUG (com.evolveum.midpoint.audit.log): Details of event 1556010500169-0-1 stage EXECUTION
      Deltas:
      2019-04-23 11:08:20,230 [] [pool-3-thread-20] ERROR (com.evolveum.midpoint.web.component.progress.ProgressPanel): Error executing changes.
      com.evolveum.midpoint.util.exception.SchemaException: Attempt to add object:null(null) to a user that already contains account of type 'default' on resource:10000000-9999-9999-0000-a000ff000002(CSV-1 (Document Access))
              at com.evolveum.midpoint.model.impl.lens.projector.ContextLoader.loadLinkRefsFromDelta(ContextLoader.java:642)
              at com.evolveum.midpoint.model.impl.lens.projector.ContextLoader.loadLinkRefs(ContextLoader.java:495)
              at com.evolveum.midpoint.model.impl.lens.projector.ContextLoader.load(ContextLoader.java:134)
              at com.evolveum.midpoint.model.impl.lens.projector.Projector.lambda$projectInternal$0(Projector.java:182)
              at com.evolveum.midpoint.model.impl.lens.ClockworkMedic.partialExecute(ClockworkMedic.java:174)
              at com.evolveum.midpoint.model.impl.lens.projector.Projector.projectInternal(Projector.java:180)
              at com.evolveum.midpoint.model.impl.lens.projector.Projector.project(Projector.java:102)
              at com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:494)
              at com.evolveum.midpoint.model.impl.lens.Clockwork.run(Clockwork.java:204)
              at com.evolveum.midpoint.model.impl.controller.ModelController.executeChanges(ModelController.java:560)
              at com.evolveum.midpoint.web.component.progress.ProgressPanel$14.callWithContextPrepared(ProgressPanel.java:601)
              at com.evolveum.midpoint.web.component.progress.ProgressPanel$14.callWithContextPrepared(ProgressPanel.java:587)
              at com.evolveum.midpoint.web.component.SecurityContextAwareCallable.call(SecurityContextAwareCallable.java:59)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vix Ivan Noris
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: