Uploaded image for project: 'User Directory'
  1. User Directory
  2. UD-160

[OrgUnits] When we synchronize orgunits, deletion of obsolete content doesn't work well

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.1.7, 2.2.0
    • 2.1.6
    • None
    • 4.2 M10

      Indeed, 

      In this issue, we try to delete an orgUnit. So we delete it with all its children. And after we try to delete the children, but it already deleted ....

       

      org.ametys.plugins.repository.UnknownAmetysObjectException: There's no node for id content://9049f13b-46e0-4faa-923a-809a6db3ea64
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getNode(SimpleAmetysObjectFactory.java:187)
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:137)
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:126)
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:58)
      at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:310)
      at org.ametys.plugins.userdirectory.DeleteOrgUnitComponent.deleteContents(DeleteOrgUnitComponent.java:113)
      at org.ametys.plugins.userdirectory.synchronize.SQLSynchronizableUDOrgunitCollection.deleteUnexistingContents(SQLSynchronizableUDOrgunitCollection.java:741)
      at org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection.populate(AbstractSynchronizableContentsCollection.java:127)
      at org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection.populate(AbstractSimpleSynchronizableContentsCollection.java:86)
      at org.ametys.plugins.contentio.synchronize.SynchronizeCollectionSchedulable.execute(SynchronizeCollectionSchedulable.java:51)
      at org.ametys.core.schedule.AmetysJob.execute(AmetysJob.java:144)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      Caused by: javax.jcr.ItemNotFoundException: 9049f13b-46e0-4faa-923a-809a6db3ea64
      at org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:384)
      at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:328)
      at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:622)
      at org.apache.jackrabbit.core.SessionImpl.getNodeById(SessionImpl.java:538)
      at org.apache.jackrabbit.core.SessionImpl.getNodeByIdentifier(SessionImpl.java:1142)
      at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getNode(SimpleAmetysObjectFactory.java:176)
      ... 12 more

            laurence Laurence Aumeunier
            afrancois Anastasia François
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: