Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-13494

SOAP calls break when trying to write {tasklist} macro in contents

XMLWordPrintable

      I have a Ruby script that writes stdin content to a page via SOAP:

      jturner@psyche:/tmp/bugdemo$ echo "h1. Test page" | ./publish.rb -p "Installed Confluence plugins"
      warning: peer certificate won't be verified in this SSL session
      jturner@psyche:/tmp/bugdemo$

      This works fine, but when the content contains a

      {tasklist}

      macro, Confluence breaks:

      jturner@psyche:/tmp/bugdemo$ echo "

      {tasklist:foo}

      " | ./publish.rb -p "Installed Confluence plugins"
      warning: peer certificate won't be verified in this SSL session
      ./confluence4r.rb:38:in `method_missing': java.lang.Exception: org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only (RuntimeError)
      from ./confluencepage.rb:19:in `<<'
      from ./publish.rb:25
      jturner@psyche:/tmp/bugdemo$

      On the server I get a stacktrace:

      2008-10-21 22:39:33.797350500 2008-10-21 22:39:33,792 ERROR [TP-Processor3] [confluence.util.velocity.VelocityUtils] getRenderedTemplate Error occurred rendering template: templates/extra/dynamictasklist2/macro.vm
      2008-10-21 22:39:33.797354500 – url: /wiki/rpc/xmlrpc | userName: anonymous
      2008-10-21 22:39:33.797355500 org.apache.velocity.exception.MethodInvocationException: Invocation of method 'requireResource' in class $Proxy40 threw exception java.lang.NullPointerException @ templates/extra/dynamictasklist2/macro.vm[1,21]
      2008-10-21 22:39:33.797413500 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
      2008-10-21 22:39:33.797415500 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
      2008-10-21 22:39:33.797416500 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
      2008-10-21 22:39:33.797426500 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
      2008-10-21 22:39:33.797428500 at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
      2008-10-21 22:39:33.797430500 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
      2008-10-21 22:39:33.797431500 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
      2008-10-21 22:39:33.797446500 at org.apache.velocity.Template.merge(Template.java:254)
      2008-10-21 22:39:33.797447500 at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplateWithoutSwallowingErrors(VelocityUtils.java:56)
      2008-10-21 22:39:33.797449500 at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplate(VelocityUtils.java:34)
      2008-10-21 22:39:33.797450500 at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedTemplate(VelocityUtils.java:27)
      2008-10-21 22:39:33.797460500 at com.atlassian.confluence.extra.dynamictasklist2.TaskListMacro.execute(TaskListMacro.java:88)
      2008-10-21 22:39:33.797461500 at com.atlassian.renderer.v2.macro.ResourceAwareMacroDecorator.execute(ResourceAwareMacroDecorator.java:45)
      2008-10-21 22:39:33.797463500 at com.atlassian.renderer.v2.components.MacroRendererComponent.executeMacro(MacroRendererComponent.java:297)
      2008-10-21 22:39:33.797472500 at com.atlassian.renderer.v2.components.MacroRendererComponent.processMacro(MacroRendererComponent.java:255)
      2008-10-21 22:39:33.797474500 at com.atlassian.renderer.v2.components.MacroRendererComponent.makeMacro(MacroRendererComponent.java:151)
      2008-10-21 22:39:33.797476500 at com.atlassian.renderer.v2.components.WikiContentRendererHandler.handleMacro(WikiContentRendererHandler.java:18)
      2008-10-21 22:39:33.797532500 at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:126)
      2008-10-21 22:39:33.797533500 at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:114)
      2008-10-21 22:39:33.797535500 at com.atlassian.renderer.v2.WikiMarkupParser.handlePotentialMacro(WikiMarkupParser.java:99)
      2008-10-21 22:39:33.797537500 at com.atlassian.renderer.v2.WikiMarkupParser.parse(WikiMarkupParser.java:60)
      2008-10-21 22:39:33.797547500 at com.atlassian.renderer.v2.components.MacroRendererComponent.render(MacroRendererComponent.java:47)
      2008-10-21 22:39:33.797549500 at com.atlassian.renderer.v2.V2Renderer.render(V2Renderer.java:53)
      2008-10-21 22:39:33.797550500 at com.atlassian.renderer.v2.plugin.PluggableV2Renderer.render(PluggableV2Renderer.java:30)
      2008-10-21 22:39:33.797552500 at com.atlassian.renderer.v2.V2RendererFacade.convertWikiToXHtml(V2RendererFacade.java:57)
      2008-10-21 22:39:33.797562500 at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)

      I've attached the full stacktrace and the ruby code.

        1. bugdemo.tgz
          1 kB
          Jeff Turner
        2. stacktrace.txt
          25 kB
          Jeff Turner

              alynch Andrew Lynch (Inactive)
              7ee5c68a815f Jeff Turner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: