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

getParentContent should return null when they are an JCR ID of a non existant content

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.1, 2.4.0
    • Labels:
      None
    • Sprint:
      4.4 M3

      Description

      org.ametys.plugins.repository.UnknownAmetysObjectException: There's no node for id content://7891b385-f0f5-423e-86f2-e34244ac1c5d
      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.OrganisationChartPageHandler.getParentContent(OrganisationChartPageHandler.java:188)
      at org.ametys.plugins.userdirectory.synchronize.SQLSynchronizableUDOrgunitCollection._setContentsRelationWithParentOrgunit(SQLSynchronizableUDOrgunitCollection.java:432)
      at org.ametys.plugins.userdirectory.synchronize.SQLSynchronizableUDOrgunitCollection._internalPopulate(SQLSynchronizableUDOrgunitCollection.java:266)
      at org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection.populate(AbstractSynchronizableContentsCollection.java:122)
      at org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection.populate(AbstractSimpleSynchronizableContentsCollection.java:79)
      at org.ametys.plugins.userdirectory.synchronize.SQLSynchronizableUDOrgunitCollection.populate(SQLSynchronizableUDOrgunitCollection.java:249)
      at org.ametys.plugins.contentio.synchronize.SynchronizeCollectionSchedulable.execute(SynchronizeCollectionSchedulable.java:51)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lbouchet Loïc Bouchet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: