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

XhtmlException error when using a variable as a macro parameter in page blueprint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Medium
    • None
    • 5.8.9
    • None
    • Server
      Linux 2.6.32-431.el6.x86_64
      Apache Tomcat/8.0.23
      Java 1.8.0_51

    Description

      I am building a plugin that has a page blueprint. The template.xml has an at:var tag that is used as a macro parameter value. When I go to admin section > Global Templates and Blueprints, and click on the Edit link, I get an error.
      Macro in template.xml

      <ac:structured-macro ac:name="detailssummary" ac:schema-version="2">
          <ac:parameter ac:name="firstcolumn">Release</ac:parameter>
          <ac:parameter ac:name="headings">Category,Type, Description</ac:parameter>
          <ac:parameter ac:name="pageSize">100</ac:parameter>
          <ac:parameter ac:name="sortBy">title</ac:parameter>
          <ac:parameter ac:name="label">mylabel</ac:parameter>
          <ac:parameter ac:name="cql"><at:var at:name="myvariablename"/></ac:parameter>
      </ac:structured-macro>
      
      Error: RuntimeException occurred while performing an XHTML storage transformation (com.atlassian.confluence.content.render.xhtml.XhtmlException: Unhandled element type '{http://atlassian.com/template}var')
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              7dc72598-88fa-4413-b794-bdafe19218d4 Deleted Account (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: