Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10297

Impossible to insert an existing content (from another site)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.3.0
    • None
    • None
    • None
    • 4.3 RC1
    • 4.3 RC2, 4.3 RC4

      How to reproduce : 

      1/ I have 2 sites : Site1 and Site 2. 

      2/ On site 2 :

      • I create a page with an exhaustive content (a lot of entries are filled)
      • I validate the content

      3/ On site 1, on a page, I do : "Add a content/existing content", and I choose exhaustive content of site 2. 

       

      Following error is displayed : 
      org.apache.cocoon.util.location.LocatedException: Can not dispatch request '2' : 'core-ui' 'client-call' '{role=org.ametys.web.repository.page.ZoneDAO, methodName=addSharedContent, parameters=[page://22892d4d-d6a4-4dfb-8d7b-5ad0d54cef81, default, defaultWebContent://213ea6e6-51a2-413b-9676-48ae3ffee599, main]}'org.apache.cocoon.util.location.LocatedException: Can not dispatch request '2' : 'core-ui' 'client-call' '{role=org.ametys.web.repository.page.ZoneDAO, methodName=addSharedContent, parameters=[page://22892d4d-d6a4-4dfb-8d7b-5ad0d54cef81, default, defaultWebContent://213ea6e6-51a2-413b-9676-48ae3ffee599, main]}' at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:194) at org.ametys.core.ui.dispatcher.DispatchGenerator.generate(DispatchGenerator.java:92) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.Cocoon.process(Cocoon.java:699) at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:572) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:834)Caused by: org.apache.excalibur.source.SourceException: Cannot get input stream for cocoon://_plugins/core-ui/client-call?role=org.ametys.web.repository.page.ZoneDAO&methodName=addSharedContent&parameters=page://22892d4d-d6a4-4dfb-8d7b-5ad0d54cef81&parameters=default&parameters=defaultWebContent://213ea6e6-51a2-413b-9676-48ae3ffee599&parameters=main& at org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:253) at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:153) ... 69 moreCaused by: org.xml.sax.SAXException: Could not get sitemap source cocoon://_plugins/core-ui/client-call?role=org.ametys.web.repository.page.ZoneDAO&methodName=addSharedContent&parameters=page://22892d4d-d6a4-4dfb-8d7b-5ad0d54cef81&parameters=default&parameters=defaultWebContent://213ea6e6-51a2-413b-9676-48ae3ffee599&parameters=main&org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap at <map:mount> - file:/D:/Dev/Ametys-1/kernel/01_Runtime/master/main/kernel/sitemap.xmap:151:82 at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:380) at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:215) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:68) at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:208) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:149) ... 69 moreCaused by: org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap at <map:mount> - file:/D:/Dev/Ametys-1/kernel/01_Runtime/master/main/kernel/sitemap.xmap:151:82 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:113) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:122) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:194) at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:333) ... 77 moreCaused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:204) at org.ametys.core.ui.ExecuteClientCallsAction.act(ExecuteClientCallsAction.java:182) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:194) at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:111) ... 87 moreCaused by: org.ametys.plugins.repository.AmetysRepositoryException: Unable to get the path of the repository data of node 'node /jcr:system/jcr:versionStorage/21/3e/a6/213ea6e6-51a2-413b-9676-48ae3ffee599/1.1/jcr:frozenNode/ametys:attachments/ametys:1/ametys:attachment'. at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1141) at org.ametys.cms.data.Binary.<init>(Binary.java:60) at org.ametys.cms.data.type.ResourceElementTypeHelper.readBinaryData(ResourceElementTypeHelper.java:188) at org.ametys.cms.data.type.impl.FileRepositoryElementType._readFileFromBinaryData(FileRepositoryElementType.java:105) at org.ametys.cms.data.type.impl.FileRepositoryElementType.read(FileRepositoryElementType.java:64) at org.ametys.plugins.repository.data.holder.impl.DefaultModelAwareDataHolder._getElementValue(DefaultModelAwareDataHolder.java:293) at org.ametys.plugins.repository.data.holder.impl.DefaultModelAwareDataHolder._getValue(DefaultModelAwareDataHolder.java:197) at org.ametys.plugins.repository.data.holder.impl.DefaultModelAwareDataHolder.getValue(DefaultModelAwareDataHolder.java:157) at org.ametys.plugins.repository.data.holder.ModelAwareDataHolder.getValue(ModelAwareDataHolder.java:159) at org.ametys.plugins.repository.data.holder.impl.DataHolderHelper.copyTo(DataHolderHelper.java:157) at org.ametys.plugins.repository.data.holder.impl.DataHolderHelper.copyTo(DataHolderHelper.java:145) at org.ametys.plugins.repository.data.holder.DataHolder.copyTo(DataHolder.java:73) at org.ametys.plugins.repository.data.holder.group.impl.ModelAwareRepeaterEntry.copyTo(ModelAwareRepeaterEntry.java:147) at org.ametys.plugins.repository.data.holder.group.impl.AbstractRepeater.copyTo(AbstractRepeater.java:198) at org.ametys.plugins.repository.data.holder.impl.DataHolderHelper.copyTo(DataHolderHelper.java:169) at org.ametys.plugins.repository.data.holder.impl.DataHolderHelper.copyTo(DataHolderHelper.java:145) at org.ametys.plugins.repository.data.holder.DataHolder.copyTo(DataHolder.java:73) at org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject.copyTo(DataAwareAmetysObject.java:57) at org.ametys.web.repository.content.shared.SharedContentManager.copyContentData(SharedContentManager.java:180) at org.ametys.web.repository.content.shared.SharedContentManager.createSharedContent(SharedContentManager.java:142) at org.ametys.web.repository.page.ZoneDAO.createSharedContent(ZoneDAO.java:225) at org.ametys.web.repository.page.ZoneDAO.addSharedContent(ZoneDAO.java:177) ... 104 moreCaused by: javax.jcr.ItemNotFoundException: Root node doesn't have a parent at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1754) at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1747) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) at org.apache.jackrabbit.core.NodeImpl.getParent(NodeImpl.java:1747) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1156) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1159) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getPath(JCRRepositoryData.java:1137) ... 125 more
      

       

       

            Unassigned Unassigned
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: