Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-1232

Image dans les parcours perdu lors de l'export CDM-fr

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.5.2, 4.0.0
    • None
    • None
    • None

      Quand on exporte une formation en CDM-fr et que cette formation contient un parcours avec une image dans un texte riche, alors l'url de l'image n'est pas généré.

      Le resolver lance une exception, car on essaie de retrouver le texte riche dans le programme au lieu du parcours (org.ametys.web.editor.LocalURIResolver ligne 194)

      Message:		Error resolving the image of uri 'subProgramContent://b32e0026-8744-42b8-abfe-11d265d794e3@additionalInformations;bacL.jpg' with type local
      Location:	org.ametys.runtime.util.SLF4JLogger.warn(SLF4JLogger.java:136)
      Thrown:
      java.lang.IllegalStateException: org.ametys.plugins.repository.metadata.UnknownMetadataException: No RichText named additionalInformations
      	at org.ametys.web.editor.LocalURIResolver.resolveImage(LocalURIResolver.java:238)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolveImage(ResolveURIComponent.java:205)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolveImage(ResolveURIComponent.java:174)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolveImage(ResolveURIComponent.java:159)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolveImage(ResolveURIComponent.java:141)
      	at sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.xalan.extensions.ExtensionHandlerJavaClass.callFunction(ExtensionHandlerJavaClass.java:367)
      	at org.apache.xalan.extensions.ExtensionHandlerJavaClass.callFunction(ExtensionHandlerJavaClass.java:440)
      	at org.apache.xalan.extensions.ExtensionsTable.extFunction(ExtensionsTable.java:222)
      	at org.apache.xalan.transformer.TransformerImpl.extFunction(TransformerImpl.java:473)
      	at org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.java:208)
      	at org.apache.xpath.XPath.execute(XPath.java:337)
      	at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:280)
      	at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:248)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
      	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
      	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
      	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
      	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemElement.constructNode(ElemElement.java:341)
      	at org.apache.xalan.templates.ElemElement.execute(ElemElement.java:290)
      	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
      	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
      	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
      	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
      	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
      	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
      	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
      	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)
      	at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)
      	at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3447)
      	at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:408)
      	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)
      	at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:586)
      	at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
      	at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
      	at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
      	at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
      	at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
      	at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)
      	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
      	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
      	at org.ametys.cms.transformation.InputStreamGenerator.generate(InputStreamGenerator.java:58)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
      	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
      	at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414)
      	at org.ametys.odf.cdmfr.CDMHelper.richText2CDM(CDMHelper.java:220)
      	at org.ametys.odf.cdmfr.CDMHelper.richText2CDM(CDMHelper.java:187)
      	at org.ametys.odf.cdmfr.CDMHelper.richText2CDM(CDMHelper.java:154)
      	at org.ametys.odf.cdmfr.ExportCDMfrManager.abstractProgram2CDM(ExportCDMfrManager.java:753)
      	at org.ametys.odf.cdmfr.ExportCDMfrManager._programPart2CDMSubPrograms(ExportCDMfrManager.java:1005)
      	at org.ametys.odf.cdmfr.ExportCDMfrManager.abstractProgram2CDM(ExportCDMfrManager.java:775)
      	at org.ametys.odf.cdmfr.ExportCDMfrManager.program2CDM(ExportCDMfrManager.java:428)
      	at org.ametys.odf.cdmfr.ExportCDMfrManager.generateCDM(ExportCDMfrManager.java:137)
      	at org.ametys.odf.cdmfr.ExportToCDMfrGenerator.generate(ExportToCDMfrGenerator.java:64)
      	at org.ametys.plugins.odfweb.generators.ExportToCDMfrGenerator.generate(ExportToCDMfrGenerator.java:59)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
      	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481)
      	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.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1159)
      	at org.ametys.runtime.servlet.RuntimeServlet._doService(RuntimeServlet.java:135)
      	at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:92)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.ametys.plugins.repository.metadata.UnknownMetadataException: No RichText named additionalInformations
      

            laurence Laurence Aumeunier
            ogehin Olivier Gehin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: