Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10031

DocumentRouteInstancesRoot fails when first document found at the root is not a Domain

    XMLWordPrintable

    Details

    • Tags:
    • Backlog priority:
      500

      Description

      In some cases the DocumentRouteInstancesRoot fails to be created.

      DocumentRoutingTreePersister tries to find the default domain to create the DocumentRouteInstancesRoot
      under it, but fails because the first document found at the root is not a Domain but a non-folderish document.

      Caused by: java.lang.IllegalArgumentException: Not a folder
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.addChild(SQLDocumentLive.java:566)
      	at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:823)
      	at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:133)
      	at $Proxy43.createDocument(Unknown Source)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingTreePersister.createDocumentRoutesStructure(DocumentRoutingTreePersister.java:156)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingTreePersister.getOrCreateRootOfDocumentRouteInstanceStructure(DocumentRoutingTreePersister.java:131)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingTreePersister.getParentFolderForDocumentRouteInstance(DocumentRoutingTreePersister.java:67)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingTreePersister.createDocumentRouteInstanceFromDocumentRouteModel(DocumentRoutingTreePersister.java:78)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl$1.run(DocumentRoutingServiceImpl.java:173)
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:115)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.createNewInstance(DocumentRoutingServiceImpl.java:165)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.createNewInstance(DocumentRoutingServiceImpl.java:230)
      	at org.nuxeo.ecm.platform.routing.web.DocumentRoutingActionsBean.startRouteRelatedToCurrentDocument(DocumentRoutingActionsBean.java:364)
      

        Attachments

          Activity

            People

            • Assignee:
              fguillaume Florent Guillaume
              Reporter:
              fguillaume Florent Guillaume
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified