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

Table of Contents is not rendered in page Preview mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 8.5.0, 8.5.1
    • None

      Issue Summary

      Table of Contents is not rendered in page Preview mode.
      Note: Issue doesn't occur for Table of Content Zone macro
       

      Steps to Reproduce

      1. Edit or create a page
      2. Add a Table of Contents macro
      3. Click Preview button

      Expected Results

      Table of Content is rendered in preview mode

      Actual Results

      Table of Content is not rendered

      2023-09-15 07:50:06,179 ERROR [http-nio-8090-exec-13 url: /confluence/pages/rendercontent.action; user: admin] [content.render.xhtml.DefaultRenderer] renderWithoutMetrics Error rendering content for view: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </p>; expected </img>.\n at [row,col {unknown-source}]: [1,1064]
       -- url: /confluence/pages/rendercontent.action | userName: admin | action: rendercontent | referer: https://linux-52180.prod.atl-cd.net/confluence/pages/copypage.action | traceId: 12671f3b20059d5f
      java.lang.RuntimeException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </p>; expected </img>.
       at [row,col {unknown-source}]: [1,1064] 

      Additional

      The issue is caused by the rendercontent.action request that doesn't have a proper closing for the <img> tag.

      <p><img class="editor-inline-macro" src="https://linux-52180.prod.atl-cd.net/confluence/plugins/servlet/confluence/placeholder/macro?definition=e3RvY30&amp;locale=en_US&amp;version=2" data-macro-name="toc" data-macro-id="f3ee8063-1d5e-47a1-a48f-4ee4e6739ab7" role="button" aria-haspopup="true" aria-label="toc macro" data-macro-schema-version="1" tabindex="0"></p><h1>Test 1</h1><h2>Test1.1</h2><p><br /></p>
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

        1. Table of Contents - Product Development - Confluence - 22 September 2023.mp4
          4.65 MB
          Bernabe Theodore Costales III
        2. image-2023-09-15-09-54-39-296.png
          278 kB
          Puventhira Mannen Pragasam Selladurai
        3. image-2023-09-15-09-53-02-107.png
          48 kB
          Puventhira Mannen Pragasam Selladurai

              Unassigned Unassigned
              c84ad05f80fa Puventhira Mannen Pragasam Selladurai (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: