-
Bug
-
Resolution: Fixed
-
Blocker
-
2.10.0
-
None
-
None
-
4.4 RC3
During FORMS-349 the XSL /Ametys - Plugin Forms/main/plugin-forms/stylesheets/docbook2html.xsl have been modified.
On line 104 there is
<script type="text/javascript"> callURL("<xsl:value-of select="translate(@id, '-', '_')"/>", "<xsl:value-of select="$id"/>", "<xsl:value-of select="@limit"/>", "<xsl:value-of select="$site-uri-prefix"/>/_plugins/") </script>
but $site-uri-prefix is never declared.
To fix this, instead of just declaring $site-uri-prefix, a check should be done to verify why there is also $uri-prefix, and check if it is possible to only use $site-uri-prefix everywhere or not (and then declare it)
My use case is far from the plugin forms : do a solr search and export it as a word document.
There is the following error
Date: Mon Mar 08 17:22:50 CET 2021 (1615220570048) Thread: http-nio-10014-exec-5 Message #: 237 Level: ERROR NDC: Category: sitemap.handled-errors Message: Failed to process pipeline at [TransformerException] - file:/home/pgros/Dev/Ametys/plugins/forms/master/main/plugin-forms/stylesheets/docbook2html.xsl:105:187 at <map:serialize type="xml"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:194:48 at <map:transform type="i18n"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:189:48 at <map:transform type="docbook-enhancement"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:188:64 at <map:transform> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:187:116 at <map:transform type="i18n"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:183:48 at <map:generate type="doc-generate"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:182:56 at <map:serialize type="xhtml"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:670:85 at <map:transform type="xslt"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:667:98 at <map:transform type="i18n"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:659:49 at <map:generate type="doc-search"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:658:56 at <map:mount> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/workspace-cms/sitemap.xmap:222:81 at <map:mount> - file:/home/pgros/Dev/Ametys/kernel/08_Web/master/main/workspace-web/sitemap.xmap:459:105 at <map:mount> - file:/home/pgros/Dev/Ametys/kernel/01_Runtime/master/main/kernel/sitemap.xmap:187:109 Location: org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46) Thrown: org.apache.cocoon.ProcessingException: Failed to process pipeline at [TransformerException] - file:/home/pgros/Dev/Ametys/plugins/forms/master/main/plugin-forms/stylesheets/docbook2html.xsl:105:187 at <map:serialize type="xml"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:194:48 at <map:transform type="i18n"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:189:48 at <map:transform type="docbook-enhancement"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:188:64 at <map:transform> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:187:116 at <map:transform type="i18n"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:183:48 at <map:generate type="doc-generate"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:182:56 at <map:serialize type="xhtml"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:670:85 at <map:transform type="xslt"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:667:98 at <map:transform type="i18n"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:659:49 at <map:generate type="doc-search"> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:658:56 at <map:mount> - file:/home/pgros/Dev/Ametys/kernel/07_CMS/master/main/workspace-cms/sitemap.xmap:222:81 at <map:mount> - file:/home/pgros/Dev/Ametys/kernel/08_Web/master/main/workspace-web/sitemap.xmap:459:105 at <map:mount> - file:/home/pgros/Dev/Ametys/kernel/01_Runtime/master/main/kernel/sitemap.xmap:187:109 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:145) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:955) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:416) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:738) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:503) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:517) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:343) 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.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:555) at org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:542) at org.ametys.cms.search.cocoon.DocSearchGenerator._saxContentForDoc(DocSearchGenerator.java:210) at org.ametys.cms.search.cocoon.DocSearchGenerator._saxGroup(DocSearchGenerator.java:167) at org.ametys.cms.search.cocoon.DocSearchGenerator._saxGroup(DocSearchGenerator.java:160) at org.ametys.cms.search.cocoon.DocSearchGenerator.saxContents(DocSearchGenerator.java:102) at org.ametys.cms.search.cocoon.SearchGenerator.generate(SearchGenerator.java:125) 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.ActTypeNode.invoke(ActTypeNode.java:139) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139) 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:569) 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.xml.utils.WrappedRuntimeException: Impossible de trouver la variable portant le nom site-uri-prefix at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:148) at org.apache.xpath.XPath.fixupVariables(XPath.java:88) at org.apache.xalan.templates.ElemValueOf.compose(ElemValueOf.java:183) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:361) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:366) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:366) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:366) at org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:366) at org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.java:341) at org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHandler.java:468) 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.xmlizer.DefaultXMLizer.toSAX(DefaultXMLizer.java:128) at org.ametys.runtime.cocoon.ThreadSafeTraxProcessor._sourceToSAX(ThreadSafeTraxProcessor.java:469) at org.ametys.runtime.cocoon.ThreadSafeTraxProcessor._createTemplates(ThreadSafeTraxProcessor.java:414) at org.ametys.runtime.cocoon.ThreadSafeTraxProcessor._getTemplates(ThreadSafeTraxProcessor.java:263) at org.ametys.runtime.cocoon.ThreadSafeTraxProcessor.getTransformerHandlerAndValidity(ThreadSafeTraxProcessor.java:179) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:332) at org.ametys.runtime.cocoon.TraxTransformer.setup(TraxTransformer.java:50) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:400) ... 87 more Caused by: javax.xml.transform.TransformerException: Impossible de trouver la variable portant le nom site-uri-prefix at org.apache.xpath.operations.Variable.fixupVariables(Variable.java:146) ... 117 more