Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19169

Fail to execute formula macro error when the ImageType is selected as SVG

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 13.10-rc-1
    • Formula
    • None
    • Windows 11 Pro 64 bit, Firefox 94, using a local instance XWiki 13.10 RC1 on Oracle 19c, Tomcat 9.0.55
    • Unknown

    Description

      STEPS TO REPRODUCE

      1. Edit a page with CKEditor
      2. Click on Insert > Other Macros and select Formula Macro
      3. Insert a formula content, e.g.
        \sum_\\{n=1}^\infty\frac\\{1}{n^2}=\frac\\{\pi^2}{6}
        
      4. On ImageType drop-down, select "Svg"
      5. Click 'Submit'

      EXPECTED RESULTS

      The formula is rendered and displayed properly.

      ACTUAL RESULTS

      An error message is displayed on the page: 

      Failed to execute the [formula] macro. Cause: The image type [image/svg+xml] is not supported by the SnuggleTeX formula renderer.]. Click on this message for details.
      

       

       When the error is expanded, the following stacktrace is displayed: 

      org.xwiki.rendering.macro.MacroExecutionException: Failed to render formula using the [snuggletex] renderer
       at org.xwiki.rendering.internal.macro.formula.FormulaMacro.render(FormulaMacro.java:179)
       at org.xwiki.rendering.internal.macro.formula.FormulaMacro.execute(FormulaMacro.java:120)
       at org.xwiki.rendering.internal.macro.formula.FormulaMacro.execute(FormulaMacro.java:57)
       at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)
       at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
       at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:88)
       at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:348)
       at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:221)
       at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)
       at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)
       at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:273)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
       at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)
       at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)
       at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)
       at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
       at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
       at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)
       at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)
       at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
       at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
       at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1228)
       at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1365)
       at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1314)
       at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1283)
       at com.xpn.xwiki.api.Document.displayDocument(Document.java:794)
       at jdk.internal.reflect.GeneratedMethodAccessor925.invoke(Unknown Source)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:568)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
       at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)
       at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)
       at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)
       at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.Template.merge(Template.java:358)
       at org.apache.velocity.Template.merge(Template.java:262)
       at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
       at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
       at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:225)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
       at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
       at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
       at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2509)
       at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2487)
       at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
       at jdk.internal.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:568)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
       at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
       at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.Template.merge(Template.java:358)
       at org.apache.velocity.Template.merge(Template.java:262)
       at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
       at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
       at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:225)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
       at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
       at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
       at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2509)
       at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2487)
       at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
       at jdk.internal.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:568)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
       at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
       at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.Template.merge(Template.java:358)
       at org.apache.velocity.Template.merge(Template.java:262)
       at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
       at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
       at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:225)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
       at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
       at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
       at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2509)
       at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2487)
       at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
       at jdk.internal.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:568)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
       at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
       at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.Template.merge(Template.java:358)
       at org.apache.velocity.Template.merge(Template.java:262)
       at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
       at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
       at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:225)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
       at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
       at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
       at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2509)
       at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
       at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:606)
       at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:289)
       at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:115)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
       at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
       at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
       at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
       at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
       at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
       at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
       at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
       at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
       at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
       at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1722)
       at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
       at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
       at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
       at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
       at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.IllegalArgumentException: The image type [image/svg+xml] is not supported by the SnuggleTeX formula renderer.
       at org.xwiki.formula.internal.SnuggleTexFormulaRenderer.renderImage(SnuggleTexFormulaRenderer.java:76)
       at org.xwiki.formula.AbstractFormulaRenderer.process(AbstractFormulaRenderer.java:55)
       at org.xwiki.rendering.internal.macro.formula.FormulaMacro.render(FormulaMacro.java:157)
       ... 216 more

       The issue doesn't reproduce if on ImageType are selected "Png, Gif or Jpeg" types.

      If other dependencies should be installed for SVG type to be rendered, the error message should be improved as it creates confusion for users.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: