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

Chart Macro breaking due to Attribute "id" was already specified for element

    • Icon: Bug Bug
    • Resolution: Tracked Elsewhere
    • Icon: Low Low
    • None
    • 4.1.6, 4.3.2
    • None

      Chart macro will not render due to error

      Error rendering macro 'chart' : org.dom4j.DocumentException: Error on line 1 of document : Attribute "id" was already specified for element "h6". Nested exception: Attribute "id" was already specified for element "h6".
      

      Relates to https://jira.atlassian.com/browse/CONFDEV-4813
      where duplicate id fields break the XML parser.

      Cause

      This is caused by an included page in the Chart macro, where the included page contains headings. The headings are assigned an id tag when they are rendered, and the ids are consequently clashing.

      Workarounds

      1. Remove the headings from the included page
      2. Use the Excerpt Include macro instead of Include, as this strips formatting and as such will not throw the error.

            [CONFSERVER-25106] Chart Macro breaking due to Attribute "id" was already specified for element

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2880071 ] New: CONFSERVER Bug Workflow v4 [ 2988825 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2780177 ] New: JAC Bug Workflow v3 [ 2880071 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2734916 ] New: JAC Bug Workflow v2 [ 2780177 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2400363 ] New: JAC Bug Workflow [ 2734916 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2299797 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2400363 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234127 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2299797 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2196197 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234127 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1926879 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2196197 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1728404 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1926879 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1685298 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1728404 ]

              Unassigned Unassigned
              rgoodwin Ryan Goodwin (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: