I have a custom macro which renders the following markup into the page:

      #requireResource("custom.macro.suite:multimediaplayer-resources")
      #set ($baseUrl = $settingsManager.getGlobalSettings().getBaseUrl())
      #set ($playerUrl = $baseUrl+$webResourceManager.getStaticPluginResource("custom.macro.suite:multimediaplayer-resources","player.swf"))
      #set ($skinUrl = $baseUrl+$webResourceManager.getStaticPluginResource("custom.macro.suite:multimediaplayer-resources","blueratio.zip"))
      #set ($fileUrl = $baseUrl+$downloadPathWithoutVersion)
      #set ($rnd = "id_"+$hashCode)
      
      <div id="$rnd">$action.getText("custom.macro.suite.multimediaplayer.loading.msg")</div>
      <script type="text/javascript">
      /* <![CDATA[ */
          jwplayer("$rnd").setup({
              flashplayer: "$playerUrl",
              file: "$fileUrl",
      		height: $height,
      		width: $width,
      		skin: "$skinUrl",
      		autostart: "$autostart"
          });
      /* ]]> */
      </script>
      

      if I put the

      {toc}-macro in the same page it doesn't render but is displaying the following error:
      Error rendering macro 'toc' : [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: String ']]>' not allowed in textual content, except as the end marker of CDATA section at [row,col {unknown-source}]: [171,5]
      


      As far as I know, the cdata-section in my markup is perfectly valid and shouldn't have any effect on the {toc}

      -macro.

            [CONFSERVER-25881] TOC Macro render error with cdata

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2894428 ] New: CONFSERVER Bug Workflow v4 [ 2987014 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2779026 ] New: JAC Bug Workflow v3 [ 2894428 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2735025 ] New: JAC Bug Workflow v2 [ 2779026 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2400478 ] New: JAC Bug Workflow [ 2735025 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2299989 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2400478 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234232 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2299989 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2196448 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234232 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1923399 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2196448 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1731473 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1923399 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1687165 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1731473 ]

              shaffenden Steve Haffenden (Inactive)
              81c14a335458 Tim
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: