-
Type: Bug
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: 5.6
-
Fix Version/s: 5.6.0-HF08, 5.7.1
-
Component/s: Content Routing (old, deprecated), Workflow
-
Tags:
-
Backlog priority:500
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)